Skip to content

Haskell: spurious character in .cf file leads to ill-formed semantic parse actions #214

@andreasabel

Description

@andreasabel
A. S ::= "A"; x -- Here is a superfluous character 
B. S ::= "B";

BNFC swallows this, but then the generated parser does not compile.
In the .y file, this grammar turns into:

S :: { S }
S : 'A' { Min.Abs.A } | 'B' { Min.Abs.x_ }

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions