aboutsummaryrefslogtreecommitdiff
path: root/neb/parser.py
diff options
context:
space:
mode:
authormryouse2022-07-01 02:45:23 +0000
committermryouse2022-07-01 02:45:23 +0000
commitd914e16f0b4de7a20df9dbd2d5baa97fa08424a7 (patch)
treeaf5a686e6159fd129bac304ba26ea3eb7b481f7e /neb/parser.py
parentbf8900200c25d383c883501446a8048ad8966d94 (diff)
attempt to add a generic list type
Diffstat (limited to 'neb/parser.py')
-rw-r--r--neb/parser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/neb/parser.py b/neb/parser.py
index 10c6633..9a73ef7 100644
--- a/neb/parser.py
+++ b/neb/parser.py
@@ -55,7 +55,7 @@ def parseType(token, prev, tokens):
typ, counter = parseType(tokens[1], tokens[0], tokens[2:])
if tokens[1+counter].type_ != TokenType.CLOSE_BRACKET:
raise ParseError("invalid type definition (expecting close bracket)", tokens[1+counter].line)
- return MultiType(f":[{typ.name}]", typ), counter + 3
+ return Type(f":[]", typ), counter + 3
else:
raise ParseError("invalid type definition!", tokens[0].line)