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

Really important: Packrat sometimes doesn't work!!! #6

Open
ksmolyanin opened this issue Jul 28, 2011 · 1 comment
Open

Really important: Packrat sometimes doesn't work!!! #6

ksmolyanin opened this issue Jul 28, 2011 · 1 comment

Comments

@ksmolyanin
Copy link

Packrat sometimes doesn't work!!! For example this grammar:
comment_content: ( / [^\*\{] / | "*" !"}" | "{" !"*" ) comment_content | comment comment_content | "" comment: "{*" comment_content "*}" static_content_symbol: ( / [^\{] / | "{" !( "{" | "*" ) )+ program: (static_content_symbol | comment) program | ""
leads to infinite loop on this example:
sjfasldkjf sdfjsdf sdfkljf {* dd {* fdf**{dj}iujljl {*y**} f *} dc{**}od *} aaaaazzz
but it works nice using ordinary algorithm!
This may happened because of cyclic definitions or because of using predicates inside that cycles ... or something else :)

This is really important because without packrat most of texts cannot be parsed in appropriate time!

@ksmolyanin
Copy link
Author

If it is possible could you fix this at first?

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

No branches or pull requests

1 participant