Nothing Special   »   [go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
andreasabel opened this issue Dec 16, 2019 · 0 comments
Closed

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

andreasabel opened this issue Dec 16, 2019 · 0 comments
Assignees
Labels
bug LBNF Concerning the LBNF syntax and its checking parser Issues concerning parser generating
Milestone

Comments

@andreasabel
Copy link
Member
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

@andreasabel andreasabel added bug Haskell parser Issues concerning parser generating labels Dec 16, 2019
@andreasabel andreasabel self-assigned this Dec 29, 2019
@andreasabel andreasabel added this to the 2.8.4 milestone Dec 29, 2019
@andreasabel andreasabel added LBNF Concerning the LBNF syntax and its checking and removed Haskell labels Dec 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug LBNF Concerning the LBNF syntax and its checking parser Issues concerning parser generating
Projects
None yet
Development

No branches or pull requests

1 participant