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

Duplicated nullable variables in RNGLR parsing #21

Closed
woutersl opened this issue Oct 31, 2014 · 3 comments
Closed

Duplicated nullable variables in RNGLR parsing #21

woutersl opened this issue Oct 31, 2014 · 3 comments
Labels
Milestone

Comments

@woutersl
Copy link
Member

Original report by Laurent Wouters (Bitbucket: 557058:675792b6-d731-4823-9f7d-c6dfcb2df2b5, ).


In some cases, nullable varialbes get duplicated in the output AST with the RNGLR parsing method.

Test case:

grammar Test
{
	options
	{
		Axiom = "unit";
	}
	terminals
	{ }
	rules
	{
		unit -> 'X' nullable ;
		nullable -> ;
	}
}

The expected AST is unit(X nullable).

The produced (incorrect) AST is unit(X nullable nullable).

@woutersl
Copy link
Member Author

Original comment by Laurent Wouters (Bitbucket: 557058:675792b6-d731-4823-9f7d-c6dfcb2df2b5, ).


Verified with the use case.

@woutersl
Copy link
Member Author

Original comment by Laurent Wouters (Bitbucket: 557058:675792b6-d731-4823-9f7d-c6dfcb2df2b5, ).


[fix] Fixed issue #21 with duplicated nullable variables in RNGLR parsers

1 similar comment
@woutersl
Copy link
Member Author

Original comment by Laurent Wouters (Bitbucket: 557058:675792b6-d731-4823-9f7d-c6dfcb2df2b5, ).


[fix] Fixed issue #21 with duplicated nullable variables in RNGLR parsers

@woutersl woutersl added this to the 1.4.0.release milestone Aug 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant