Closed Daniel63656 closed 8 months ago
Works fine for me.
Are you using the latest Lark version? i.e. 1.1.8
my version is lark-parser 0.12.0 pypi_0 pypi
which seems to be the newest version. If I run $ pip install --upgrade lark-parser I get: Requirement already satisfied: lark-parser in c:\users\daniel\anaconda3\envs\musicml\lib\site-packages (0.12.0)
Code output is:
Callback for adj: [Token('ADJ', 'yummy')] ----FROM HERE ON NO CALLBACKS SHOULD HAPPEN---- Callback for noun: [[Token('ADJ', 'yummy')], Token('NOUN', 'fruit')] Callback for noun: [[Token('ADJ', 'yummy')], Token('NOUN', 'fruit')] {'VERB'}
pip uninstall lark-parser
pip install lark -U
Thanks a lot that fixed it. Maybe consider removing the wheels for lark-parser to avoid confusion?
I use a transformer to get callblacks whenever a rule finishes. I use an interactive parser. When I check for the next tokens that can be parsed, the callbacks are triggered several times:
Is this a bug?