answersLogoWhite

0

Why do compiler writers need formal grammars?

Updated: 8/11/2023
User Avatar

Qurratulain

Lvl 1
18y ago

Best Answer

Just as a person requires knowledge of the syntax (structure) and semantics (meaning) of a spoken language, so too does the compiler need to "understand" how to interpret what is being given to it. A formal grammar provides the rules of syntax and semantics.

User Avatar

Wiki User

18y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

9y ago

A compiler is a program that converts high-level source code into low-level machine code. Source code is human-readable and much easier to maintain than machine code, but computers do not understand high-level code. Everything has to be converted to machine code before it can be executed.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why do compiler writers need formal grammars?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Why do you need compilers?

we need compiler to run the programme. compiler will check the error in the problem. compiler can check the error with the help of run time compiler. they can be static or dynamically.


What do you advice me how to answer the question of why you leraving the company?

"I need to go back to elementary school and learn me some grammars. But... I'LL BE BACK."


What compiler and interpreter effect the speed of computer?

need to get to mars


Do you need formal training to be a psychoanalyst?

Yes, formal training is required to become a psychoanalyst. This typically involves completing a doctoral or postgraduate degree in psychology or psychoanalysis, gaining clinical experience under the supervision of a licensed psychoanalyst, and completing psychoanalytic training programs. Certification by a professional psychoanalytic organization is also often necessary.


How do you get C?

To use c you need a text editor and a compiler such as gcc.


Does c sharp work on c or c plus plus compilers or you need a c sharp compiler?

They are different languages, each of them requires its own compiler.


Are programs that translate the source code to object code?

False. A compiler converts source code into object code.


How do you create software in c?

All you need is a text editor and a C-compiler.


Need of C compiler?

Mainly to translate C sources into objects modules.


What formal training is useful for writers?

A MFA degree does help with getting a higher paid job. With any degree it all is based on need. Check with your local businesses to find what is needed more communications, or English.


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


Do writers need applications?

Yes