Skip to content

Problem inducing grammar definitions with aggressivePartialParsing #7

Open
@akshalaniche

Description

@akshalaniche

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions