예제 #1
0
파일: Parser.cs 프로젝트: Deliay/SuperBasic
        //Program  -> Block
        public void Program()
        {
            move();
            s = Modules();
            CurrentGenerator.Start(top.SubTables.First());
            int begin = CurrentGenerator.AllocLabel(), after = CurrentGenerator.AllocLabel();

            CurrentGenerator.Label(begin);
            s.gen(begin, after);
            CurrentGenerator.Label(after);
            CurrentGenerator.End();
        }