From 85bcdbbd053ebc75f1e752fd723fab92a99910ce Mon Sep 17 00:00:00 2001 From: Mustafa Quraish Date: Mon, 31 Jan 2022 02:55:50 -0500 Subject: Add ability to import other files This still requires a lot of work to avoid duplicate imports, and handle cyclic imports, but it is a good enough for small examples which just want to include some common definitions from std/ --- src/tokens.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/tokens.h') diff --git a/src/tokens.h b/src/tokens.h index 3917f0f..7af4780 100644 --- a/src/tokens.h +++ b/src/tokens.h @@ -51,6 +51,7 @@ F(TOKEN_LET, "let") \ F(TOKEN_RETURN, "return") \ F(TOKEN_WHILE, "while") \ + F(TOKEN_IMPORT, "import") \ typedef enum { -- cgit v1.2.3