diff options
| author | Mustafa Quraish <[email protected]> | 2022-01-31 02:55:50 -0500 |
|---|---|---|
| committer | Mustafa Quraish <[email protected]> | 2022-01-31 02:55:50 -0500 |
| commit | 85bcdbbd053ebc75f1e752fd723fab92a99910ce (patch) | |
| tree | d4fc198339925081ab7f9e6bfb3a59ca092dd2c8 /src/tokens.h | |
| parent | Minor fixes to code generation (diff) | |
| download | cup-85bcdbbd053ebc75f1e752fd723fab92a99910ce.tar.xz cup-85bcdbbd053ebc75f1e752fd723fab92a99910ce.zip | |
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/
Diffstat (limited to 'src/tokens.h')
| -rw-r--r-- | src/tokens.h | 1 |
1 files changed, 1 insertions, 0 deletions
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 { |