public ArrayAssignmentStatementNode(IdentifierNode identifierNode, ExpressionNode indexExpressionNode, ExpressionNode assignExpressionNode, int lineNumber)
 {
     this.identifier = identifierNode;
     this.assignExpression = assignExpressionNode;
     this.indexExpression = indexExpressionNode;
     this.lineNumber = lineNumber;
 }
 public FieldAssignmentStatementNode(IdentifierNode classIdentifier, IdentifierNode fieldIdentifier, ExpressionNode assignExpressionNode, int lineNumber)
 {
     this.classIdentifier = classIdentifier;
     this.fieldIdentifier = fieldIdentifier;
     this.assignExpression = assignExpressionNode;
     this.lineNumber = lineNumber;
 }
 public MethodCallExpressionNode(ExpressionNode expressionNode, IdentifierNode identifierNode, ExpressionListNode expressionListNode, int lineNumber)
 {
     this.expression = expressionNode;
     this.identifier = identifierNode;
     this.expressionList = expressionListNode;
     this.lineNumber = lineNumber;
 }
Esempio n. 4
0
 public IfStatementNode(ExpressionNode expressionNode, StatementNode thenStatementNode, StatementNode elseStatementNode, int lineNumber)
 {
     this.expression = expressionNode;
     this.thenStatement = thenStatementNode;
     this.elseStatement = elseStatementNode;
     this.lineNumber = lineNumber;
 }
 public SubtractExpressionNode(ExpressionNode expressionNode1, ExpressionNode expressionNode2, int lineNumber)
 {
     this.expression1 = expressionNode1;
     this.expression2 = expressionNode2;
     this.lineNumber = lineNumber;
 }
Esempio n. 6
0
 public NotExpressionNode(ExpressionNode expressionNode, int lineNumber)
 {
     this.expression = expressionNode;
     this.lineNumber = lineNumber;
 }
Esempio n. 7
0
 public ReturnStatementNode(ExpressionNode expressionNode, int lineNumber)
 {
     this.expression = expressionNode;
     this.lineNumber = lineNumber;
 }
 public ArrayLookupExpressionNode(ExpressionNode arrayExpressionNode, ExpressionNode indexExpressionNode, int lineNumber)
 {
     this.arrayExpression = arrayExpressionNode;
     this.indexExpression = indexExpressionNode;
     this.lineNumber = lineNumber;
 }
 public NewIntegerArrayExpressionNode(ExpressionNode expressionNode, int lineNumber)
 {
     this.expression = expressionNode;
     this.lineNumber = lineNumber;
 }
Esempio n. 10
0
 public MultiplyExpressionNode(ExpressionNode expressionNode1, ExpressionNode expressionNode2, int lineNumber)
 {
     this.expression1 = expressionNode1;
     this.expression2 = expressionNode2;
     this.lineNumber = lineNumber;
 }
Esempio n. 11
0
 public void AddExpression(ExpressionNode expression)
 {
     this.expressionList.Add(expression);
 }
 public FieldAccessExpressionNode(ExpressionNode expressionNode, IdentifierNode identifierNode, int lineNumber)
 {
     this.expression = expressionNode;
     this.identifier = identifierNode;
     this.lineNumber = lineNumber;
 }
Esempio n. 13
0
 public WhileStatementNode(ExpressionNode expressionNode, StatementNode statementNode, int lineNumber)
 {
     this.expression = expressionNode;
     this.statement = statementNode;
     this.lineNumber = lineNumber;
 }
Esempio n. 14
0
 public MultiplyExpressionNode(ExpressionNode expressionNode1, ExpressionNode expressionNode2, int lineNumber)
 {
     this.expression1 = expressionNode1;
     this.expression2 = expressionNode2;
     this.lineNumber  = lineNumber;
 }
 public SystemOutPrintLnStatementNode(ExpressionNode expressionNode, int lineNumber)
 {
     this.expression = expressionNode;
     this.lineNumber = lineNumber;
 }
Esempio n. 16
0
 public AssignmentStatementNode(IdentifierNode identifierNode, ExpressionNode expressionNode, int lineNumber)
 {
     this.identifier = identifierNode;
     this.expression = expressionNode;
     this.lineNumber = lineNumber;
 }