Fixed some function parsing.
This commit is contained in:
parent
9e8410d4cf
commit
7343c3b9d9
@ -14,6 +14,7 @@ ASTNumData exec_exp(AST* ast) {
|
|||||||
case AST_TYPE_CALL: return exec_call(ast);
|
case AST_TYPE_CALL: return exec_call(ast);
|
||||||
case AST_TYPE_NUM: return *(ASTNumData*)ast->data;
|
case AST_TYPE_NUM: return *(ASTNumData*)ast->data;
|
||||||
default: printf("what\n");
|
default: printf("what\n");
|
||||||
|
exit(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@ exp:
|
|||||||
| LGROUP exp RGROUP { $$ = $2; }
|
| LGROUP exp RGROUP { $$ = $2; }
|
||||||
|
|
||||||
// Variable reference.
|
// Variable reference.
|
||||||
| WORD
|
//| WORD
|
||||||
|
|
||||||
// Function call.
|
// Function call.
|
||||||
// name(thing, thing)
|
// name(thing, thing)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user