11 #include <llvm/IR/IRBuilder.h> 12 #include <llvm/IR/Module.h> 14 #include "../../utils/ArgsOptions.h" 15 #include "../general/ASTInfo.h" 17 #ifndef __cast_capital__ 18 #define CAST_TO_C_STRING castToCStr 20 #define CAST_TO_C_STRING CastToCStr 21 #endif // __cast_capital__ 73 virtual void code_gen(llvm::Module *M, llvm::IRBuilder<> &B,
74 llvm::BasicBlock *BreakBB) = 0;
Abstract class in which all expressions in Brain implement from.
Definition: Expr.h:62
virtual void debug_description(int level)=0
Virtual method for the AST's emission.
virtual ExpressionType expression_category()
Returns the category of the expression given by the caller.
Definition: Expr.h:93
virtual void code_gen(llvm::Module *M, llvm::IRBuilder<> &B, llvm::BasicBlock *BreakBB)=0
Virtual method for code generation.
virtual void ast_code_gen()=0
Virtual method for the reverse code generation from the AST. It prints out to the stdout the token it...
virtual bool update_expression(char update)
Virtual method for updating the AST exprs.
Definition: Expr.h:89