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

Zero optional repeats should not be allowed #72

Closed
zimmski opened this issue Dec 1, 2014 · 1 comment
Closed

Zero optional repeats should not be allowed #72

zimmski opened this issue Dec 1, 2014 · 1 comment

Comments

@zimmski
Copy link
Owner

zimmski commented Dec 1, 2014

Zero optional repeats like

START = *("a" | )

should not be allowed since this opens problems with the internal parser and therefore with the reduction process. The Problem is that this will result to the token Graph Repeat -> Optional -> String, which means that Repeat can repeat deactivated optionals. Meaning that the input "" could be not only zero repetitions but also a million of it.

@zimmski
Copy link
Owner Author

zimmski commented Dec 1, 2014

EVERY repeat with just an optional should not be allowed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant