Пример #1
0
        public ParseTree Parse()
        {
            ParseTree tree = new ParseTree();
            ParseStatementList(tree.Statements);

            return tree;
        }
Пример #2
0
 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>();
 }