Skip to content

Problem with empty terminals #149

@sirdude

Description

@sirdude

The following grammar works with bnfc -c or --cpp but does not build with haskell

Prog. Program ::= Defin ;
Pe. Program ::= "" ;
Def. Defin ::= "woo" ;

It will generate files but when trying to make I get the following:
% make
happy -gca ParTest.y
alex -g LexTest.x
LexTest.x:25:3: parse error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions