public MainClassDeclNode(IdentifierNode classIdNode, IdentifierNode parameterIDNode, StatementNode statementNode, int lineNumber) { this.classIdentifier = classIdNode; this.mainParameterIdentifier = parameterIDNode; this.statement = statementNode; this.lineNumber = lineNumber; }
public IfStatementNode(ExpressionNode expressionNode, StatementNode thenStatementNode, StatementNode elseStatementNode, int lineNumber) { this.expression = expressionNode; this.thenStatement = thenStatementNode; this.elseStatement = elseStatementNode; this.lineNumber = lineNumber; }
public void AddStatement(StatementNode statement) { this.statementList.Add(statement); }
public WhileStatementNode(ExpressionNode expressionNode, StatementNode statementNode, int lineNumber) { this.expression = expressionNode; this.statement = statementNode; this.lineNumber = lineNumber; }