Skip to content

PG generates wrong grammar rules for optional element #35

@lionelvillard

Description

@lionelvillard

use case:

args_OPT
: {_term("args_OPT");} MT_args_OPT
| {_embed();} ET_args_OPT CRSX_EMBED_END
| {} {_enterOPT();} args ? ({_tail();} ({_term("args_OPT");} MT_args_OPT | {_embed();} ET_args_OPT CRSX_EMBED_END))? {_exitOPT();} {} ;

Tail matching should not be allowed.

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