diff options
| author | mryouse | 2022-07-01 02:59:39 +0000 | 
|---|---|---|
| committer | mryouse | 2022-07-02 16:45:22 +0000 | 
| commit | 688ffa154530589b462d2c9d6be6eb61da2f2851 (patch) | |
| tree | bca3ccff040301cf0ecf37b89c24c2b784e755fe /neb/parser.py | |
| parent | d914e16f0b4de7a20df9dbd2d5baa97fa08424a7 (diff) | |
Revert "initial commit of multi-type support (only list of strings for now)"
This reverts commit bf8900200c25d383c883501446a8048ad8966d94.
Diffstat (limited to 'neb/parser.py')
| -rw-r--r-- | neb/parser.py | 2 | 
1 files changed, 1 insertions, 1 deletions
| 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: | 
