Why do compiler writers need formal grammars?

1 answer

Answer

1278498

2026-08-08 15:50

+ Follow

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.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.