Skip to content

Constant string matches are not reported #27

@vlmarek

Description

@vlmarek
grammar G {
        token TOP { <a> b <c> }
        token a { a }
        token c { c }
}

say so G.parse('abc');
TOP
|  a
|  * MATCH "a"
|  c
|  * MATCH "c"
* MATCH "abc"
True

There is no mention of 'b' being matched until whole TOP matched. In complex grammars it's difficult to spot what last thing was matched before failure.

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