// Default constructor. Inits values public BoolOpASTNode() : base(ASTNodeType.ASTTYPE_BOOLOP) { value = BOOLOP_TYPE.BOOLOP_EQUALS; exprOne = null; exprTwo = null; }
// Default constructor. Inits values public IntOpASTNode() : base(ASTNodeType.ASTTYPE_INTOP) { value = INTOP_TYPE.INTOP_ADD; intVal = null; expr = null; }
// Set constructor. public IfStatementASTNode(ExprASTNode expr, BlockASTNode block) : this() { this.expr = expr; this.block = block; }
// Default costructor, inits values public IfStatementASTNode() : base(ASTNodeType.ASTTYPE_IFSTATEMENT) { expr = null; block = null; }
// Default costructor, inits values public WhileStatementASTNode() : base(ASTNodeType.ASTTYPE_WHILESTATEMENT) { expr = null; block = null; }
// Set cosntructor public PrintStatementASTNode(ExprASTNode expr) : this() { this.expr = expr; }
// Default costructor, inits values public PrintStatementASTNode() : base(ASTNodeType.ASTTYPE_PRINTSTATEMENT) { expr = null; startToken = null; }
// Set constructor public AssignmentStatementASTNode(IDASTNode id, ExprASTNode expr) : this() { this.id = id; this.expr = expr; }
// Default costructor, inits values public AssignmentStatementASTNode() : base(ASTNodeType.ASTTYPE_ASSIGNSTATEMENT) { id = null; expr = null; }