public ParseTree Parse() { ParseTree tree = new ParseTree(); ParseStatementList(tree.Statements); return tree; }
public Compiler(ParseTree tree) { _tree = tree; _symbols = new SymbolTable(); var instructionScanner = new InstructionScanner(ExpressionRegistryHelper.Default); _instructions = instructionScanner.BuildInstructionInfo(typeof(InstructionInfo).Assembly.GetTypes()); _machineCode = new List<String>(); }