fix(runner): print lexer error
This commit is contained in:
@@ -25,9 +25,10 @@ class Runner:
|
||||
tokens: list[Token]
|
||||
try:
|
||||
tokens = lexer.process()
|
||||
except:
|
||||
except Exception as e:
|
||||
print("Partially parsed tokens:")
|
||||
print(lexer.tokens)
|
||||
print(e)
|
||||
return
|
||||
print(list(filter(lambda t: t.type not in Parser.IGNORE, tokens)))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user