diff options
| author | mryouse | 2022-06-18 02:00:11 +0000 |
|---|---|---|
| committer | mryouse | 2022-06-18 02:00:11 +0000 |
| commit | aebfbb3895a81b1a285f6e9aa9877e16a87d7ec2 (patch) | |
| tree | 04bde73f2b986a627709465949e3e6e30c8dd05b /structs.py | |
| parent | d4a93e6bc9dd39d365fce82454d48bc03e989a98 (diff) | |
remove extra token types
Diffstat (limited to 'structs.py')
| -rw-r--r-- | structs.py | 27 |
1 files changed, 2 insertions, 25 deletions
@@ -7,8 +7,6 @@ from typeclass import TypeEnum # NOTE: this can probably be simplified class TokenType(Enum): - PRINT = auto() - OPEN_PAREN = auto() CLOSE_PAREN = auto() @@ -21,33 +19,12 @@ class TokenType(Enum): TRUE = auto() FALSE = auto() - # arithmetic - PLUS = auto() - DASH = auto() - STAR = auto() - SLASH = auto() - - # strings - DOUBLE_QUOTE = auto() - - # comparison - GREATER = auto() - GREATER_EQUAL = auto() - LESS = auto() - LESS_EQUAL = auto() - EQUAL = auto() - NOT = auto() - AND = auto() - OR = auto() - - # flow + # keywords IF = auto() FOR_COUNT = auto() - PIPE = auto() - - # keywords DEF = auto() LAMBDA = auto() + FUNC = auto() # symbols SYMBOL = auto() |
