public Parser(Token[] Tokens) { tokens = Tokens; index = 0; symbolTable = new SymbolTable(); typeTable = new TypeTable (); typeTable.AddType (new type () { Name = "void", Value = "void" }); typeTable.AddType (new type () { Name = "int", Value = "int" }); typeTable.AddType (new type () { Name = "float", Value = "float" }); typeTable.AddType (new type () { Name = "bool", Value = "bool" }); typeTable.AddType (new type () { Name = "char", Value = "char" }); typeTable.AddType (new type () { Name = "string", Value = "string" }); }
public Parser(Token[] tokens) { this.tokens = tokens; }