Skip to content

List category of internal category should be internal #465

@andreasabel

Description

@andreasabel

BNFC creates an invalid parser if one makes a list of internal non-terminals.

EVar.              Exp ::= Ident            ;

internal VInteger. Val ::= Integer          ;
internal VExp.     Val ::= Exp "{" [Eq] "}" ;
internal VEq.      Eq  ::= Ident ":=" Val   ;

separator Eq ","                            ;

I didn't find any version of BNFC that would alert of the problem or silently do the right thing (make [Eq] internal as well).

Update: coercions of purely internal categories also end up in the parser, but do not cause errors there (just garbage).

Metadata

Metadata

Assignees

Labels

buginternal rulesConcerning the "internal" keyword.parserIssues concerning parser generating

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions