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

Problem inducing grammar definitions with aggressivePartialParsing #7

Open
akshalaniche opened this issue Aug 9, 2018 · 0 comments

Comments

@akshalaniche
Copy link

With the -Parser.aggressivePartialParsingoption flag, when doing the following:

Try "for each point in world containing item is red {visit point; pick every item is red" (note the space in "for each"). This is parsed as "foreach point in world containing item is red {visit point; pick every item is red" by the extended parsing. Accept the parse

Define "gather red" as "for each point in world containing item is red {visit point; pick every item is red"

Then the grammar inducer does not induce "gather $Color" and "gather $Property".

If defining "gather red" as "foreach point in world containing item is red {visit point; pick every item is red" (without the space in "foreach"), then "gather $Color" and "gather $Property" are induced.

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