Implementing a simple JS compiler
Input
mul 2 add 3 7
Output
(2 * (3 + 7))
- Lexical Analysis
- Syntax Analysis
- Code Generation
- EBNF Grammar
- Recursive Descent Parser
A blog written by @mgechev : Implementing a Simple Compiler on 25 Lines of JavaScript