Skip to content

Add PonyGE2 grammar parser - #404

Merged
alcides merged 1 commit into
mainfrom
feat/ponyge2-grammar
Aug 25, 2026
Merged

Add PonyGE2 grammar parser#404
alcides merged 1 commit into
mainfrom
feat/ponyge2-grammar

Conversation

@alcides

@alcides alcides commented Aug 25, 2026

Copy link
Copy Markdown
Owner

Summary

  • Parse PonyGE2 BNF grammar text and files.
  • Generate dynamic GeneticEngine nonterminal and production dataclasses.
  • Return an extracted GeneticEngine Grammar and starting symbol.
  • Support ordinary terminals through VarRange.
  • Support GE_RANGE:n and named ranges via ge_constants.
  • Add parser, error-handling, and tree-generation tests.

Closes #162

Validation

  • Ruff passed.
  • Mypy passed.
  • Full test suite: 520 passed, 8 skipped.

@alcides
alcides merged commit 96b2067 into main Aug 25, 2026
8 checks passed
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.

Parser for BNF

1 participant