Example #1
0
        void ALELA()
        {
            List <AST> liste = new List <AST>(); List <AST> elist = new List <AST>();
            AST        e; SymDeclaring e1 = null; AST idval;

            DECL(out e);
            liste.Add(e);
            while (StartOf(1))
            {
                DECL(out e);
                liste.Add(e);
            }
            Expect(8);
            BLOCK(out elist);
            liste.Add(new ProgSetup(elist));
            Expect(9);
            BLOCK(out elist);
            liste.Add(new ProgLoop(elist));
            while (StartOf(1))
            {
                DCL(out e1, out idval);
                FUNCDECL(out e, e1);
                liste.Add(e);
            }
            ProgramAST = new Prog(liste);
        }
Example #2
0
File: Visitor.cs Project: mkju19/P4
 public abstract void Visit(Prog n);