Skip to content

Yeast: Corpus tests and fixes to yeast#21840

Draft
asgerf wants to merge 12 commits into
github:mainfrom
asgerf:asgerf/yeast-features
Draft

Yeast: Corpus tests and fixes to yeast#21840
asgerf wants to merge 12 commits into
github:mainfrom
asgerf:asgerf/yeast-features

Conversation

@asgerf
Copy link
Copy Markdown
Contributor

@asgerf asgerf commented May 12, 2026

Adds support for Corpus-style tests

asgerf added 12 commits May 12, 2026 16:31
This adds tests consisting of source code and a printout of its rewritten AST.
The test output becomes useless because we can't map the root node to anything at the moment
…n in field patterns

Two changes to parse_query_fields:

- Allow `field: (kind)* @cap` (repetition + optional capture) in field
  position, mirroring how it works for bare children.
- When the same field name is declared multiple times in a query (e.g.
  `condition: (foo) condition: (bar)`), merge them into a single
  ordered list of children rather than emitting duplicate field
  entries (which at runtime restart the iterator for the field and
  cause the second declaration to re-match from the first child).
@asgerf
Copy link
Copy Markdown
Contributor Author

asgerf commented May 12, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant