示例#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;
            }
        }
示例#2
0
文件: Visitor.cs 项目: mkju19/P4
 public abstract void Visit(ListDcl n);