diff options
author | Jo-Philipp Wich <jo@mein.io> | 2022-07-20 10:20:53 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2022-07-28 13:18:30 +0200 |
commit | b738f3adbe76fb4bd446f1de1f0ece71cf6b78e8 (patch) | |
tree | 8fda8bc675beb1ff5537f752991589c27a44d191 /include | |
parent | 03c8e4b465c8cffd2596d2741b29ad2ba4ec1765 (diff) |
lexer: recognize module related keywords
Add support for the `import`, `export`, `from` and `as` keywords used in
module import and export statements.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'include')
-rw-r--r-- | include/ucode/lexer.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/ucode/lexer.h b/include/ucode/lexer.h index dbec129..e3aba8e 100644 --- a/include/ucode/lexer.h +++ b/include/ucode/lexer.h @@ -117,6 +117,10 @@ typedef enum { TK_NULLISH, TK_PLACEH, TK_TEMPLATE, + TK_IMPORT, + TK_EXPORT, + TK_FROM, + TK_AS, TK_EOF, TK_ERROR |