9 std::vector<std::shared_ptr<ASTDeclNode>> VARS;
12 std::vector<std::shared_ptr<ASTNode>>
getChildren()
override;
13 ASTDeclStmt(std::vector<std::shared_ptr<ASTDeclNode>> VARS);
14 std::vector<ASTDeclNode *>
getVars()
const;
16 llvm::Value *
codegen()
override;
19 std::ostream &
print(std::ostream &out)
const override;
Class for local variable declaration statement.
Definition: ASTDeclStmt.h:8
llvm::Value * codegen() override
Perform code generation and return an LLVM value the code.
Definition: CodeGenFunctions.cpp:779
std::ostream & print(std::ostream &out) const override
Definition: ASTDeclStmt.cpp:25
ASTDeclStmt(std::vector< std::shared_ptr< ASTDeclNode >> VARS)
Definition: ASTDeclStmt.cpp:5
void accept(ASTVisitor *visitor) override
Visit the children of this node and apply the visitor.
Definition: ASTDeclStmt.cpp:16
std::vector< std::shared_ptr< ASTNode > > getChildren() override
Return all of the children for the node.
Definition: ASTDeclStmt.cpp:40
std::vector< ASTDeclNode * > getVars() const
Definition: ASTDeclStmt.cpp:12
Base class for all statement nodes.
Definition: ASTStmt.h:7
Base class for AST visitors.
Definition: ASTVisitor.h:23