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

Various fixes for parsing #306

Merged
merged 17 commits into from
Feb 6, 2025
Merged

Various fixes for parsing #306

merged 17 commits into from
Feb 6, 2025

Conversation

andreas-zeller
Copy link
Collaborator

This pull request

  • fixes a number of (mostly minor) issues with parsing complex inputs (bits, regexes, alternatives...).
  • brings a new --format=repr output option, printing derivation trees using the Fandango internal representation (useful for assertions).
  • reworked the repr() and str() functions for derivation trees and symbols: repr() now returns the internal representation, and str() returns the (user-facing) associated string (as per Python conventions).
  • DerivationTree objects still have several to_xxx() conversion methods for producing "official" output formats.

All tests pass, and the documentation builds. Enjoy!

@joszamama joszamama merged commit 8e450b6 into main Feb 6, 2025
3 of 4 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.

2 participants