From 0ddd53b66c1069ebab588285e3cbc894816de7ad Mon Sep 17 00:00:00 2001 From: David Phillips Date: Thu, 2 Aug 2018 00:30:48 +1200 Subject: parse: Pass expr failure up --- parse.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)); -- cgit v1.1