Exemple #1
0
        void TYPE(out SymDeclaring e)
        {
            e = null; SymDeclaring lt = null;
            switch (la.kind)
            {
            case 43: {
                Get();
                e = new VoidDcl();
                break;
            }

            case 44: {
                Get();
                e = new IntDcl();
                break;
            }

            case 45: {
                Get();
                e = new FloatDcl();
                break;
            }

            case 46: {
                Get();
                e = new StringDcl();
                break;
            }

            case 47: {
                Get();
                e = new BooleanDcl();
                break;
            }

            case 48: {
                Get();
                e = new StructDcl();
                break;
            }

            case 49: {
                Get();
                Expect(36);
                TYPE(out lt);
                Expect(34);
                e = new ListDcl(lt);
                break;
            }

            default: SynErr(52); break;
            }
        }
Exemple #2
0
 public abstract void Visit(IntDcl n);