package compiler
Ordering
- Alphabetic
Visibility
- Public
- All
Type Members
-
class
SymbolTable
extends AnyRef
Symbol table contains set of symbols in current scope and link to parent SymbolTable.
Value Members
-
object
AST
Script Abstract Syntax Tree
-
object
CodeGenerator
Generate executable code from AST
-
object
Executable
Executable code
-
object
Parser
Script parser.
Script parser. This parser uses ANTLR4 generated Parser and Lexer. What this object adds is conversion of ANTLR AST into FlowScript AST.
-
object
Result
Helper object for definition of Result.
Helper object for definition of Result. Status code which is return by compiler Checkers
-
object
SymbolChecker
Run the following checks
Run the following checks
- Variable not declared 2. Variable redefinition in the same scope 3. Function not declared 4. Function redefinition
Variables and function are in separate scopes.
-
object
TypeChecker
Check Type correctness.
Check Type correctness. This implementation uses multiple passes. One for each type check. This is made for clarity event if it is not optimal.