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

Empty rules not handling correctly in LALR #1

Open
jdamen opened this issue Jan 27, 2020 · 2 comments
Open

Empty rules not handling correctly in LALR #1

jdamen opened this issue Jan 27, 2020 · 2 comments

Comments

@jdamen
Copy link

jdamen commented Jan 27, 2020

Describe the bug
I noticed that empty rules in the pck are not handled correctly in LALR

To Reproduce
Using following PCK content:
programs: start
whitespace: hidden

programs -> until_RUN RUN

until_RUN -> until_AT until_RUN
until_RUN -> until_AT
until_RUN ->
until_AT -> RT
until_AT -> ST

RUN= 'RUN'
RT= 'RT'
ST= 'ST'
whitespace= '[ \t\r\n\f\v]+'

It parses correctly using the following content:
RT
RUN

But it does not parse correctly with the this content:
RUN

while I think it should

@codewitch-honey-crisis
Copy link
Owner

codewitch-honey-crisis commented Jan 27, 2020 via email

@codewitch-honey-crisis
Copy link
Owner

codewitch-honey-crisis commented Jan 28, 2020 via email

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

2 participants