We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
sequence
choice
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
The sequence/choice nodes in the Pest grammar AST are binary. We should allow them to flatten such that:
(choice (choice (identifier "a") (identifier "b") ) (identifier "c") )
Turn into:
(choice (identifier "a") (identifier "b") (identifier "c") )
This makes downstream consumption easier. Note that sequence has higher precedence than choice.
The text was updated successfully, but these errors were encountered:
pest2ion
Flattens the choice operator
74d390a
Need to refactor this to be a bit more generic so we can re-use logic for `sequence` operator Towards partiql#37.
Flattens choice/sequence operators
045fc35
Implements a `flatten` a higher-order function to operate on binary operators that have associativity like `choice`/`sequence`. Resolves partiql#37.
42809e0
Flattens choice/sequence operators (#46)
4e10be8
Implements a `flatten` a higher-order function to operate on binary operators that have associativity like `choice`/`sequence`. Resolves #37.
Successfully merging a pull request may close this issue.
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: