From 5274edb5484f75266304d21840f8e854f2a1d3c5 Mon Sep 17 00:00:00 2001 From: mryouse Date: Thu, 30 Jun 2022 03:08:39 +0000 Subject: refactor: types are not natively lexed --- neb/structs.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'neb/structs.py') 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: -- cgit v1.2.3