summaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/parse.c b/parse.c
index 668a700..c860bbf 100644
--- a/parse.c
+++ b/parse.c
@@ -144,7 +144,9 @@ parse(const char *fname, FILE *f, struct token *t) {
kerchunk();
break;
case TOK_EXPR:
- parse_expr();
+ if (parse_expr()) {
+ return 1;
+ }
break;
default:
emit("Error: Unexpected %s\n", get_token_description(cursor->type));