Ejemplo n.º 1
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>();
 }
Ejemplo n.º 2
0
        public Disassembler()
        {
            var libRegistry = BuildExpressionLibraryRegistry(new ArraySystemBus(1024));
            var instructionScanner = new InstructionScanner(libRegistry);
            _instructions = instructionScanner.BuildInstructionInfo(typeof(InstructionScanner).Assembly.GetTypes());

            childInstructionSpaces = new Dictionary<String, List<String>>();

            AddChildInstructionSpaces(String.Empty);
        }