How a compiler works Posted on 2017-02-01 Core Components: Lexical Analyzer AST Parser Interpreter (use visitor pattern to traverse the AST) Symbol table ASTcontext-free grammersexample:Parsing7 + 3 * (10 / (12 / (3 + 1) - 1)) context-free grammers to AST: parsing a programe: