BNFC-2.9.0: A compiler front-end generator.
Safe HaskellNone
LanguageHaskell2010

BNFC.Backend.Haskell.CFtoAbstract

Synopsis

Documentation

cf2Abstract Source #

Arguments

:: TokenText

Use ByteString or Text instead of String?

-> Bool

Derive Data, Generic, Typeable@?

-> Bool

Make the tree a functor?

-> String

Module name.

-> CF

Grammar.

-> Doc 

Create a Haskell module containing data type definitions for the abstract syntax.

definedRules :: Bool -> CF -> [Doc] Source #

Generate Haskell code for the defined constructors.