Esempio n. 1
0
            protected void addStandardLabels()
            {
                builder.SetLabel("StandardRuntime.Nil", StandardRuntime.Nil);
                builder.SetLabel("StandardRuntime.False", StandardRuntime.False);
                builder.SetLabel("StandardRuntime.True", StandardRuntime.True);
                builder.SetLabel("Environment.NewLine", new Cell(Environment.NewLine));
                // Add CellType.[Name] definitions
                CellType cellType = CellType.SYMBOL;

                foreach (var kv in cellType.GetKeyValues <int>())
                {
                    builder.SetLabel("CellType." + kv.Key, kv.Value);
                }
                OpCode opcode = OpCode.NOP;

                // Add OpCodes (no prefix)
                foreach (var kv in opcode.GetKeyValues <int>())
                {
                    builder.SetLabel(kv.Key, kv.Value);
                }
            }