Beispiel #1
0
 public Parser(Lexer lexer) : this(lexer, new SymbolTable( ))
 {
 }
Beispiel #2
0
 public Parser(Lexer lexer, SymbolTable symbolTable)
 {
     _lexer       = lexer;
     _symbolTable = symbolTable;
 }
Beispiel #3
0
 /// <summary>
 /// Parses the FACTOR Production Rule
 /// FACTOR: NUMBER
 /// </summary>
 private static ASTNode ParseFactor(Lexer lexer) => ParseNumber(lexer);