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

Test cases via builtin strings, Ability to take a subalphabet #21

Merged
merged 1 commit into from
Sep 27, 2024

Conversation

stschaef
Copy link
Collaborator

@stschaef stschaef commented Sep 27, 2024

Added support for using the builtin Char (unicode) alphabet

Added the ability to take a subalphabet of a given alphabet

The unicode support allows you to write tests via ordinary strings. See the bottom of Examples.Dyck for a demonstration where I create a second alphabet that is a subset of unicode characters (namely '(' and ')', prove this new alphabet is iso to the original bracket, and use that iso to easily write strings for tests

I did this to stress test the parsers on large input, hence the name of the branch. In Dyck, the BalancedStkTr parser can handle input of ~20k characters in about 30 seconds.

@stschaef stschaef requested a review from maxsnew September 27, 2024 16:52
@maxsnew maxsnew merged commit 75a0633 into main Sep 27, 2024
2 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