-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flatten Pest to Ion sequence
/choice
Nodes
#37
Labels
enhancement
New feature or request
Comments
This was referenced Jun 10, 2021
Merged
almann
added a commit
to almann/partiql-lang-rust
that referenced
this issue
Jun 11, 2021
Need to refactor this to be a bit more generic so we can re-use logic for `sequence` operator Towards partiql#37.
almann
added a commit
to almann/partiql-lang-rust
that referenced
this issue
Jun 12, 2021
Implements a `flatten` a higher-order function to operate on binary operators that have associativity like `choice`/`sequence`. Resolves partiql#37.
almann
added a commit
to almann/partiql-lang-rust
that referenced
this issue
Jun 12, 2021
Implements a `flatten` a higher-order function to operate on binary operators that have associativity like `choice`/`sequence`. Resolves partiql#37.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
sequence
/choice
nodes in the Pest grammar AST are binary. We should allow them to flatten such that:Turn into:
This makes downstream consumption easier. Note that
sequence
has higher precedence thanchoice
.The text was updated successfully, but these errors were encountered: