示例#1
0
 public MethodDecl(TypeDecl typeDeclaration, Token methodId,
                   List <VarDecl> variables, List <StatementDecl> statements, ExpressionDecl expression)
     : base(NonTermType.Method)
 {
     TypeDeclaration = typeDeclaration;
     MethodId        = methodId;
     Variables       = variables;
     Statements      = statements;
     Expression      = expression;
 }
示例#2
0
 public VarDecl(TypeDecl typeDeclaration, Token id)
     : base(NonTermType.Variable)
 {
     TypeDeclaration = typeDeclaration;
     Id = id;
 }