diff options
author | David Phillips <david@sighup.nz> | 2018-08-02 00:30:48 +1200 |
---|---|---|
committer | David Phillips <david@sighup.nz> | 2018-08-02 00:30:48 +1200 |
commit | 0ddd53b66c1069ebab588285e3cbc894816de7ad (patch) | |
tree | ff7de051ba4a13cb8ea3c062382d477f755505c2 | |
parent | 68f80d8e8bbaf8968b77c7d6f83e6078465406ce (diff) | |
download | hence-0ddd53b66c1069ebab588285e3cbc894816de7ad.tar.xz |
parse: Pass expr failure up
-rw-r--r-- | parse.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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)); |