BNFC / bnfc

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

[#192] Haskell: Generate IsString instances for token types #284

Closed andreasabel closed 4 years ago

andreasabel commented 4 years ago

The newtype created for Ident and user-defined tokens are now instances of IsString. This makes it easier to build trees manually if you want to use bnfc's pretty printer for code generation.

Closes #192.

andreasabel commented 4 years ago

The implementation of cfToAbstract has diverged so much that it is easier to reimplement feature #192 thank trying to merge this PR.