8 std::shared_ptr<ASTExpr> VAR;
11 std::vector<std::shared_ptr<ASTNode>>
getChildren()
override;
15 llvm::Value *
codegen()
override;
18 std::ostream &
print(std::ostream &out)
const override;
Abstract class for all expression subtypes.
Definition: ASTExpr.h:7
Class for referencing the address of an expression.
Definition: ASTRefExpr.h:7
std::vector< std::shared_ptr< ASTNode > > getChildren() override
Return all of the children for the node.
Definition: ASTRefExpr.cpp:16
ASTRefExpr(std::shared_ptr< ASTExpr > VAR)
Definition: ASTRefExpr.h:12
std::ostream & print(std::ostream &out) const override
Definition: ASTRefExpr.cpp:11
void accept(ASTVisitor *visitor) override
Visit the children of this node and apply the visitor.
Definition: ASTRefExpr.cpp:4
llvm::Value * codegen() override
Perform code generation and return an LLVM value the code.
Definition: CodeGenFunctions.cpp:603
ASTExpr * getVar() const
Definition: ASTRefExpr.h:13
Base class for AST visitors.
Definition: ASTVisitor.h:23