From aebfbb3895a81b1a285f6e9aa9877e16a87d7ec2 Mon Sep 17 00:00:00 2001 From: mryouse Date: Sat, 18 Jun 2022 02:00:11 +0000 Subject: remove extra token types --- structs.py | 27 ++------------------------- 1 file changed, 2 insertions(+), 25 deletions(-) (limited to 'structs.py') diff --git a/structs.py b/structs.py index 02693be..1956c4b 100644 --- a/structs.py +++ b/structs.py @@ -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() -- cgit v1.2.3