aboutsummaryrefslogtreecommitdiff
path: root/neb/structs.py
diff options
context:
space:
mode:
authormryouse2022-06-30 03:08:39 +0000
committermryouse2022-06-30 03:08:39 +0000
commit5274edb5484f75266304d21840f8e854f2a1d3c5 (patch)
tree5e2c9e808ccf5963e55598b5eb6e2903b126d08e /neb/structs.py
parent35a2c0413a383a6291de71a94752cd08bdfb16f0 (diff)
refactor: types are not natively lexed
Diffstat (limited to 'neb/structs.py')
-rw-r--r--neb/structs.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/neb/structs.py b/neb/structs.py
index 5298e61..b8effd0 100644
--- a/neb/structs.py
+++ b/neb/structs.py
@@ -11,6 +11,8 @@ class TokenType(Enum):
OPEN_PAREN = auto()
CLOSE_PAREN = auto()
+ OPEN_BRACKET = auto()
+ CLOSE_BRACKET = auto()
EOF = auto()
@@ -43,6 +45,7 @@ class TokenType(Enum):
USER_TYPE = auto()
MANY = auto()
+ COLON = auto()
@dataclass
class Token: