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>(); }
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); }