infer on rule vs inside rule to introduce triangle type structure #1539
-
given the grammar
parses into
but i expect
is this a bug? or a bad usage? |
Beta Was this translation helpful? Give feedback.
Answered by
spoenemann
Jun 14, 2024
Replies: 1 comment 2 replies
-
Currently, it's a feature, but you could call it a bug as well. Calling an unassigned action just replaces the current AST node with a new one, deleting all properties. We should probably adjust that... |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes just changing the
$type
should work?