[AST] Adding indexing operations

This commit is contained in:
Philippe Tillet
2018-12-29 17:06:48 -05:00
parent 1b8199b82d
commit 8f9e6a3655
4 changed files with 55 additions and 3 deletions

View File

@@ -482,6 +482,11 @@ Value* binary_operator::codegen(module *mod) const{
return result;
}
/* Postfix expression */
Value* indexing_expression::codegen(module *mod) const{
return nullptr;
}
/* Unary operator */
Value *unary_operator::llvm_op(llvm::IRBuilder<> &builder, Value *arg, const std::string &name) const{
Type *atype = arg->getType();