diff options
Diffstat (limited to 'src/parse.c')
-rw-r--r-- | src/parse.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/parse.c b/src/parse.c index f2f89cd..86b084f 100644 --- a/src/parse.c +++ b/src/parse.c @@ -16,15 +16,12 @@ Term *parse_blc_fp(FILE *fp) if (b == '0') { res = term_new(ABS); res->u.abs.body = parse_blc_fp(fp); - } - if (b == '1') { + } else if (b == '1') { res = term_new(APP); res->u.app.lhs = parse_blc_fp(fp); res->u.app.rhs = parse_blc_fp(fp); } - } - - if (a == '1') { + } else if (a == '1') { res = term_new(IDX); res->u.index = 0; while (getc(fp) == '1') |