예제 #1
0
        public StatementFlowInitializer(DencProgram program, ClassHeir classHeir)
        {
            Program = program;

            Level   = 0;
            Address = 0;

            Radix     = Program.Architecture.DefaultRadix;
            LastLabel = null;
        }
예제 #2
0
        public void Setup(DencProgram program, ClassHeir classHeir, IStatement parent, ref StatementFlowInitializer flow)
        {
            Program = program;

            if (classHeir == null)
            {
                flow = new StatementFlowInitializer(program, this);
            }

            flow.Push();

            foreach (var s in StatementList)
            {
                if (s != null)
                {
                    s.Setup(program, this, this, ref flow);
                }
            }

            flow.Pop();
        }
예제 #3
0
 public void Setup(DencProgram program, ClassHeir classHeir, IStatement parent, ref StatementFlowInitializer flow)
 {
 }