Closed enjoysmath closed 1 year ago
Fixed it! Apparently, the documentation is half-right based on the fact that the example has imported="blah" while the **kwargs description says to use the name_prefix. So look here:
I changed imported= to "utility=" and it fucking works now!!!! I'm so pleased 👍 :)
That's great! If you can think of ways to improve the documentation, please submit a PR! (or even just list them in a new issue)
I have utility.py:
variable.py:
utility.lark:
and finally variable.lark:
Expected behavior:
That permute3_312 gets called first so that the proper debug output would be ['1', '2', 2] and not [2, '1', '2']
The point of the permutation utilities was to make it easy to try every "permutation" of grammar vars/terms A, B, C. Now I can't do that, because the ParseTreeToUtility.permute3_312() method is never appropriately called.
That is a bug for me.