Thanks to visit codestin.com
Credit goes to github.com

Skip to content

convert EBNF to BNF loses optional token? #71

@triebelf

Description

@triebelf

Given this input:

filedecl_beg = KW_FILEDECL_BEG, STRING, [ STRING ] ;

I run kgt with this command:

./kgt -l iso-ebnf -e bnf <input.ebnf

Actual output:

<filedecl_beg> ::= <KW_FILEDECL_BEG> <STRING>

Expected output, I cannot present here, but would expect that the second, optional STRING is present in the BNF output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions