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:
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;
}
}