示例#1
0
        public void Complete()
        {
            Statements = StatementList.ToArray();
            Jumps      = JumpList.ToArray();
            LocalTypes = LocalTypeList.ToArray();

            StatementList = null;
            JumpList      = null;
            LocalTypeList = null;
            VarMap        = null;
            LabelMap      = null;
        }
示例#2
0
        int LabelUndefined = 0;                 // Number of labels awaiting definition.

        // Statement preparation ( compile phase ).

        public void Init()
        {
            Statements = null;
            Jumps      = null;
            LocalTypes = null;

            StatementList = new G.List <System.Action>();
            JumpList      = new G.List <int>();
            LocalTypeList = new G.List <DataType>();
            VarMap        = new G.Dictionary <string, int>();
            LabelMap      = new G.Dictionary <string, int>();
        }