Minh Phượng
New member
How can I make a compiler?
Answer
How to Build a Compiler?
Answer
How to Build a Compiler?
- Establish the language rules (grammar)
- 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).