Beispiel #1
0
            public override void GenerateCode(ICodeGen gen)
            {
                int local = this.GetTable().GetVariables().Sum(v => v is ParamVar ? 0 : v.GetType().GetSizeType());

                gen.StartProc(this);
                foreach (LocalVar v in this.GetTable().GetVariables())
                {
                    gen.Decl(v);
                }

                this.body.GenerateCode(gen);
                gen.EndProc();
            }
Beispiel #2
0
            public override void GenerateCode(ICodeGen gen)
            {
                int local = this.GetTable().GetVariables().Sum(v => v is ParamVar ? 0 : v.GetType().GetSizeType());
                gen.StartProc(this);
                foreach (LocalVar v in this.GetTable().GetVariables())
                {
                    gen.Decl(v);
                }

                this.body.GenerateCode(gen);
                gen.EndProc();
            }