BNFC / bnfc

BNF Converter
http://bnfc.digitalgrammars.com/
586 stars 165 forks source link

Ignore internal non-terminals in parser #264

Closed andreasabel closed 4 years ago

andreasabel commented 4 years ago
Prg. Program ::= "main" ;
internal VInt. Value ::= Integer ;

BNFC does currently not produce a valid Happy parser for this.

happy InternalCat/Par.y
InternalCat/Par.y: unknown identifier 'Value'

When generating the parser, we should ignore all non-parsable rules.