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