diff options
| author | mryouse | 2022-06-16 04:09:26 +0000 |
|---|---|---|
| committer | mryouse | 2022-06-16 04:09:26 +0000 |
| commit | a072842248fe7324574bc7733a8c4255af56c855 (patch) | |
| tree | 86641bc9c500a2463b279a7968fa7e2532179632 /lexer.py | |
| parent | 3b8834623d780316f81535029f2f8fee40736878 (diff) | |
refactor: take type hints from user in function args
Diffstat (limited to 'lexer.py')
| -rw-r--r-- | lexer.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -9,9 +9,12 @@ class LexError(BaseException): types = { ":int": TokenType.INT_TYPE, ":float": TokenType.FLOAT_TYPE, + ":number": TokenType.NUMBER_TYPE, ":string": TokenType.STRING_TYPE, ":list": TokenType.LIST_TYPE, - ":any": TokenType.ANY_TYPE } + ":any": TokenType.ANY_TYPE, + ":literal": TokenType.LITERAL_TYPE, + ":bool": TokenType.BOOL_TYPE } keywords = { "print": TokenType.PRINT, |
