Copyright | 2012 Kei Hibino |
---|---|
License | BSD3 |
Maintainer | ex8k.hibino@gmail.com |
Stability | experimental |
Portability | unknown |
Safe Haskell | None |
Language | Haskell98 |
This module includes a naive printer implementation for Syntax
.
- data Printer tok alpha
- runPrinter :: Printer tok alpha -> alpha -> Maybe [tok]
- printM :: Monad m => Printer tok alpha -> alpha -> m [tok]
- type RunAsPrinter tok a e = RunAsPrinter tok [tok] a e
- type RunAsStringPrinter a e = RunAsPrinter Char a e
- runAsPrinter :: Eq tok => RunAsPrinter tok a ErrorString
Syntax instance Printer type
Naive Printer
type. Print alpha
into [tok]
.
Eq tok => Syntax tok (Printer tok) Source | |
IsoFunctor (Printer tok) Source |
|
AbstractSyntax (Printer tok) Source |
|
TryAlternative (Printer tok) Source |
|
IsoAlternative (Printer tok) Source |
|
ProductFunctor (Printer tok) Source |
|
runPrinter :: Printer tok alpha -> alpha -> Maybe [tok] Source
Function to run printer
Print action
Poly-morphic wrapper of runPrinter
type RunAsPrinter tok a e = RunAsPrinter tok [tok] a e Source
Specialized RunAsPrinter
type into list.
type RunAsStringPrinter a e = RunAsPrinter Char a e Source
Specialized RunAsPrinter
type into String
.
runAsPrinter :: Eq tok => RunAsPrinter tok a ErrorString Source