harec

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit f3d7aa01e280d8cdeac6106fd808b9cffd6f57ff
parent c26d54f7fe60f5615c9e1f71534b619ee14ae2c7
Author: Drew DeVault <sir@cmpwn.com>
Date:   Sun, 22 Nov 2020 08:55:02 -0500

parse: populate AST_IMPORT_IDENTIFIER

Diffstat:
Msrc/parse.c | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/parse.c b/src/parse.c @@ -102,9 +102,12 @@ parse_import(struct parser *par, struct ast_imports *imports) case T_LBRACE: assert(0); // TODO case T_SEMICOLON: - return; + imports->mode = AST_IMPORT_IDENTIFIER; + imports->ident = ident; + break; default: synassert(false, &tok, T_EQUAL, T_LBRACE, T_SEMICOLON, T_EOF); + break; } }