Example #1
0
 public IfStatement(ExpressionDecl expression, StatementDecl statementIf, StatementDecl statementElse)
     : base(NonTermType.IfStatement)
 {
     Expression    = expression;
     StatementIf   = statementIf;
     StatementElse = statementElse;
 }
Example #2
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;
 }
Example #3
0
 public AssignIdStatement(Token id, ExpressionDecl expression)
     : base(NonTermType.IdStatement)
 {
     Expression = expression;
     Id         = id;
 }
Example #4
0
 public AssignVarStatement(VarDecl variable, ExpressionDecl expression)
     : base(NonTermType.VarStatement)
 {
     Expression = expression;
     Variable   = variable;
 }
Example #5
0
 public WhileStatement(ExpressionDecl expression, StatementDecl statement)
     : base(NonTermType.WhileStatement)
 {
     Expression = expression;
     Statement  = statement;
 }