-
What is your question? I have simply type lambda calculus grammar. But when I use it and variations of it due to how parsers work I get a giant CST (compare to ASTs). I want to convert my CST to an AST with constructors Abs, Apply, Vars. Or directly from strings to ASTs. How does one do that? If you're having trouble with your code or grammar
related: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
from erezsh: This might help: https://lark-parser.readthedocs.io/en/latest/examples/advanced/create_ast.html Also useful to have a good grasp of the built-in tree construction option: https://lark-parser.readthedocs.io/en/latest/tree_construction.html from: #1053 |
Beta Was this translation helpful? Give feedback.
from erezsh:
This might help: https://lark-parser.readthedocs.io/en/latest/examples/advanced/create_ast.html
Also useful to have a good grasp of the built-in tree construction option: https://lark-parser.readthedocs.io/en/latest/tree_construction.html
from: #1053