From 7dcb5bea3f32f7f122aea323995fe1da55cb8316 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 16 Jun 2024 15:13:48 -0400 Subject: Support top-level imports --- parse.c | 1 + 1 file changed, 1 insertion(+) diff --git a/parse.c b/parse.c index fd981372..73c65d46 100644 --- a/parse.c +++ b/parse.c @@ -1672,6 +1672,7 @@ PARSER(parse_file_body) { ||(stmt=optional(ctx, &pos, parse_lang_def)) ||(stmt=optional(ctx, &pos, parse_func_def)) ||(stmt=optional(ctx, &pos, parse_use)) + ||(stmt=optional(ctx, &pos, parse_import)) ||(stmt=optional(ctx, &pos, parse_linker)) ||(stmt=optional(ctx, &pos, parse_extern)) ||(stmt=optional(ctx, &pos, parse_inline_c)) -- cgit v1.2.3