answersLogoWhite

0


Best Answer

we use context free grammer in compiler consctrtion to cheack the validati of input in parsing.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Want context free grammar for c language compiler?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Why you need compiler?

You don't need if you don't want to develop computer programs. But if you want you should use it, for you can not make programs without a compiler. Compiler is the programs that makes the computer program out of the code


How do you translate pascal language to assembly language?

Why would you want to do that? The usual procedure is to translate a high-level language such as Pascal to machine language. If you really want assembly language - perhaps to see how the Pascal compiler does its work - then presumably you can use a disassembler to convert the machine language (the executable file) into assembly language.


What is the role of the Compiler in a C program?

The compiler takes the file that you have written and produces another file from it. In the case of Pascal programs, for instance, you might write a program called myProg.pas and the Pascal compiler would translate it into the file myProg.exe which you could then run. If you tried to examine the contents of myProg.exe using, say, a text editor, then it would just appear as gobbledy-gook.The compiler has another task apart from translating your program. It also checks it to make sure that it is grammatically correct. Only when it is sure that there are no grammatical errors does it do the translation. Any errors that the compiler detects are called compile-time errors or syntax errors. If it finds so much as one syntax error, it stops compiling and reports the error to you.While the above is true, more simply put, a compiler translates source code to a language the computer understands. A computer does not operate in the language used for source code programming. Basic C code is based on discrete mathematics. The computer operates on what is called Assembly Language or Machine Code, which a computer understands, and contains the specific instructions for the computer to perform the source code's design.


What is the difference between a native compiler and a cross compiler?

A native compiler is one that compiles programs for the same architecture or operating system that it is running on. For instance, a compiler running on an x86 processor and creating x86 binaries. A cross-compiler is one that compiles binaries for architectures other than its own, such as compiling SPARC binaries on a PowerPC processor.A cross compiler executes in one environment and generates code for another. A "native compiler" generates code for its own execution environment. For example, Microsoft Visual Studio includes a native compiler. It is used on the Windows platform to create applications that are run on the windows platform. A cross compiler could also execute on the Windows operating system, but possibly generate code aimed at a different platform. Many embedded devices, such as mobile phones or wasching machines, are programed in such way. Compilers generating cross-platform hyper code such as compilers for Java or any of the .NET languages fall somewhere in between these two basic compiler categories. Their nature depends on the exact use-case, and the angle under which you look at those when categorizing.


How high level computer language works without assembler compiler and interpreter?

I do not know, ask your teacher.Why, for example Python, PHP, Pearl and JavaScript work without compiler; C, Pascal, Cobol and Fortan work without interpreter.None work "without assembler compiler and interpreter" so the question cannot be answered as asked because there is no answer.If we want to write a program without an assembler, compiler or interpreter; it is an easy answer. You hand assemble, that is where you manually enter the machine code. In the early days this was the only way to program a computer. Having done some hand assembly I have to things to say about it.1) it is not as hard as it might appear to be but it is painfully slow to do.2) why bother when there are excellent compilers available.

Related questions

Why you need compiler?

You don't need if you don't want to develop computer programs. But if you want you should use it, for you can not make programs without a compiler. Compiler is the programs that makes the computer program out of the code


Why can't java compiler initialize local variables?

Its not that the compiler can't initialize local variables; its that the compiler does not initialize local variables.This is by design and language specification. If you want to initialize local variables, you must explicitly do so.


How do you translate pascal language to assembly language?

Why would you want to do that? The usual procedure is to translate a high-level language such as Pascal to machine language. If you really want assembly language - perhaps to see how the Pascal compiler does its work - then presumably you can use a disassembler to convert the machine language (the executable file) into assembly language.


What software do you use for making games?

Depends on what programming language you want to use. I personally use: DevC++ bloodshed and allegro to do some fun little quickie games. You can use any compiler you want just make sure it supports the language you want to write in.


What is the first invention invented during computer?

Please learn the correct English language grammar of a question if you want an answer.


When you install C LANGUAGE display 16 dilogbox on that dialogbox display install pif file so please give you answer quick?

You cannot install a programming language on your computer. If you want to install a compiler, see the attached link.


What is that things need to learn in order to develop any application which can make communication easy?

Know your grammar, spelling, and the language you want to commmunikate in


Can English grammar be learned like a formula?

The short answer is yes. The grammar of any language is really a formula, or system. If there is no underlying structure or order to a language, the language wouldn't be much good to anyone. Some languages are very difficult to learn; English is really not one of the most difficult. If you want to learn a difficult language, try Icelandic. On the other hand, although grammar is a 'formula', English is full of traps in the form of exceptions. I don't envy anyone who faces the task of learning English as a second language. I do, however, have the deepest respect and admiration for people who are.


Are There any ways to develop your own software?

you can develpo your system level software using C programming or assembly if u want to develop a particular application then you can use any suitable IDE or language or else if you want to develop ur own programming language then develop a compiler or interpreter for it.u can do it in assemblyor c.ok


When java uses compiler?

What i know is java we will use compiler when it want to get class file(file with .class extension) from java file(file with .java extension).


Free download English grammar?

yes i want english grammar dictonory free download


What is a call to action in grammar?

A Call To Action in grammar is what you want your reader/audience to do about the problem mentioned.