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

Allow users to specify a new start rule after having initialized their Parser class #101

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

BlakeCThompson
Copy link

Currently, in order to test subcomponents of a grammar, you must manually change the start attribute of the user defined parser class, and then rerun any tests using text from the subset.

With the changes in this PR, users can specify a "start_override" string to rebuild the grammar with the new start value. This allows developers the ease of testing subsets of the grammar without having to create several versions of their parser, or editing their parser before testing each sub-rule of the grammar.

Unit tests passing

@BlakeCThompson BlakeCThompson force-pushed the allow_specifying_start_rule_after_class_initialization branch from 288bd94 to 803f4a7 Compare October 3, 2022 04:41
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.

1 participant