From 688ffa154530589b462d2c9d6be6eb61da2f2851 Mon Sep 17 00:00:00 2001 From: mryouse Date: Fri, 1 Jul 2022 02:59:39 +0000 Subject: Revert "initial commit of multi-type support (only list of strings for now)" This reverts commit bf8900200c25d383c883501446a8048ad8966d94. --- neb/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'neb/parser.py') diff --git a/neb/parser.py b/neb/parser.py index 9a73ef7..d5712d2 100644 --- a/neb/parser.py +++ b/neb/parser.py @@ -45,7 +45,7 @@ def parseLiteral(token, prev, tokens): def parseType(token, prev, tokens): # if the next token is a symbol, combine for a type - if tokens[0].type_ == TokenType.SYMBOL: + if len(tokens) > 0 and tokens[0].type_ == TokenType.SYMBOL: return Type(f":{tokens[0].text}"), 2 elif tokens[0].type_ == TokenType.OPEN_BRACKET: # only format currently supported: -- cgit v1.2.3