5 Commits
Author SHA1 Message Date
César ValadezandClaude Sonnet 4.6 4aadb310ed fix: allow spaces in wildcard names in grammar
WILDCARD_PAT excluded \s (all whitespace) which prevented referencing
YAML keys containing spaces (e.g. __key with spaces__). Replace \s
with \t\n\r to allow space characters while still rejecting tabs and
newlines.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-12 15:44:09 -06:00
César ValadezandClaude Sonnet 4.6 e427a9a907 fix: mypy and ruff cleanup for native parser implementation
- Fix mypy files scope to src/ only (native-parser dir name is invalid package)
- Fix type: ignore comment from [misc] to [type-arg] on lark Transformer base class
- Replace unreachable return "" with AssertionError in all _eval_node functions
- Fix unused imports flagged by ruff

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-12 12:27:51 -06:00
César Valadez 255d56c551 feat: wildcard and variable parsing with full test coverage 2026-03-12 10:11:36 -06:00
César Valadez 0ff0fb4fa2 feat: full variant syntax — weights, count, sampler prefix, custom separator 2026-03-12 10:09:06 -06:00
César Valadez ca855be13a feat: add lark grammar, parser, and basic variant tests 2026-03-12 10:05:36 -06:00