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

Rules with a rule as first subrule cause SystemStackError error #1

Open
callahat opened this issue Mar 18, 2015 · 0 comments
Open

Rules with a rule as first subrule cause SystemStackError error #1

callahat opened this issue Mar 18, 2015 · 0 comments

Comments

@callahat
Copy link
Owner

@grammar_with_self_referential_rule.add_rules :S,
    [ [@terminal_a, :S, @terminal_a], [] ],
    [ [@terminal_a], [] ] ,
    [ [:S, @repetition], []  ]

This will cause a SystemStackError when match? or translate is ran, since the last subrule will keep attempting to see if :S matches. There is a test that validates the exception is thrown which could be changed to check that this is still broken or has been fixed.

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