BNFC / bnfc

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

`define` and `token` categories #338

Closed andreasabel closed 3 years ago

andreasabel commented 3 years ago

This hasn't been tested with #266:

CNil.     Chars ::=                 ;
cSg.      Chars ::= Char            ;
CSnoc.    Chars ::= Chars Dot Char  ;

define    cSg c = CSnoc CNil (Dot ".") c;

token     Dot '.'                   ;

Affects: