Skip to content

Haskell: illegal Happy file if category names use apostrophe #279

@andreasabel

Description

@andreasabel
Prg_ . Prg' ::= "prg" ;

Happy does not like the grammar BNFC creates for it:

Prg' :: { Prg' }
Prg' : 'prg' { Test.Abs.Prg_ }
Test/Par.y: Parse error

According to the Happy specification, identifiers for non-terminals may not use the apostrophe character:
https://www.haskell.org/happy/doc/html/sec-grammar-files.html#sec-lexical-rules

Metadata

Metadata

Assignees

Labels

LBNFConcerning the LBNF syntax and its checkingbugparserIssues concerning parser generating

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions