Compiler Structure - SidekickGroup/qlcompiler GitHub Wiki

Version History

Data Versão Descrição Autor
30/10/2017 1.0 Creating document structure Miguel Pimentel

Compiler Structure

As said before, this compiler aims to emit Javascript(ES6) from python(3.0). To build it was used the structured/stages presented below:

  • Lexer: Process where the characters are split in the source code into tokens, that process is also called of flexing

  • Parser: Process that organize tokens into an abstract syntax tree(AST). It is important to know that the AST is the intermediate state representation. The parsing is also called of parsing.

  • Evaluate: Process where the AST is manipulated to a final state, in this stage we got the final product. This process is also called evaluation

References