Skip to content
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

feat(toAST): by default, represent built-in list rules by arrays #398

Merged
merged 5 commits into from
Sep 17, 2022

Conversation

pdubroy
Copy link
Contributor

@pdubroy pdubroy commented Sep 15, 2022

BREAKING CHANGE: Change the default behavior toAST for the built-in list rules (ListOf and friends). Both the syntactic (ListOf, ...) and lexical versions (listOf, ...) are now represented as arrays, with the separators discarded. Previously, the syntactic versions were represented by arrays, but with separators included, and the lexical versions were represented as strings (just like other lexical rules).

Fixes #394.

@pdubroy pdubroy changed the title feat(toAST): default mapping should return arrays for listOf and friends feat(toAST): by default, represent built-in list rules by arrays Sep 17, 2022
@pdubroy pdubroy merged commit c693d53 into master Sep 17, 2022
@pdubroy pdubroy deleted the issue-394 branch September 17, 2022 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

listOf, nonemptyListOf and emptyListOf handling in toAST
1 participant