How can I make a compiler?

Minh Phượng

New member
How can I make a compiler?
Answer
How to Build a Compiler?
  1. Establish the language rules (grammar)
  2. Be able to read a file, parse it, then build an validate an Abstract Syntax Tree from that grammar. If you can’t build the syntax tree, it’s because some grammar is wrong (this is the concept of a syntax error).
 

Tìm kiếm

Back
Top