Replies: 1 comment 5 replies
-
There is the relatively new ast_utils Example here. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I wanted to transform strings to their python object representation automatically. e.g. I have a small toy grammar like this:
And wanted to create objects automatically e.g.
I think it's not hard given a lark_ast to build them if I know the grammar but I would have to change my ast_lark parser to objects every time I change the grammar and I wanted to avoid that. Is there a lark automatic way around this?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions