You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lark.exceptions.UnexpectedCharacters: No terminal matches ')'in the current parser context, at line 2 col 27
reference(resource)
^
Expected one of:
* LPAR
Previous tokens: Token('RESOURCE', 'resource')
am I missing something? Why did the literal "resource" become a Token and why was it matched, even the rule defines an open bracket to be after the literal?
If I define the problematic part in the grammar like this, then everything is fine, but it feels for me unneeded
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
First things first, thanks for the great library ❤️
I'm trying to make sense of a weird behaviour, maybe it is a bug or it works as designed, I hope I will finally find the answer 😄
My current grammar is much bigger, so I was able to reduce it to make it easier to debug, if needed
and the Python code to run it
this results in following error
am I missing something? Why did the literal
"resource"
become a Token and why was it matched, even the rule defines an open bracket to be after the literal?If I define the problematic part in the grammar like this, then everything is fine, but it feels for me unneeded
Beta Was this translation helpful? Give feedback.
All reactions