| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
CFG
Documentation
Constructors
| Nonterminal String | |
| Terminal String |
isTerminal :: Symbol -> Bool Source #
data ExtendedSymbol Source #
Constructors
| Symbol Symbol | |
| Epsilon | |
| EndOfSymbol |
Instances
| Eq ExtendedSymbol Source # | |
Defined in CFG Methods (==) :: ExtendedSymbol -> ExtendedSymbol -> Bool # (/=) :: ExtendedSymbol -> ExtendedSymbol -> Bool # | |
| Show ExtendedSymbol Source # | |
Defined in CFG Methods showsPrec :: Int -> ExtendedSymbol -> ShowS # show :: ExtendedSymbol -> String # showList :: [ExtendedSymbol] -> ShowS # | |
data ProductionRule Source #
Constructors
| ProductionRule String [Symbol] |
Instances
| Eq ProductionRule Source # | |
Defined in CFG Methods (==) :: ProductionRule -> ProductionRule -> Bool # (/=) :: ProductionRule -> ProductionRule -> Bool # | |
| Read ProductionRule Source # | |
Defined in CFG Methods readsPrec :: Int -> ReadS ProductionRule # readList :: ReadS [ProductionRule] # | |
| Show ProductionRule Source # | |
Defined in CFG Methods showsPrec :: Int -> ProductionRule -> ShowS # show :: ProductionRule -> String # showList :: [ProductionRule] -> ShowS # | |
type ProductionRules = [ProductionRule] Source #
Constructors
| CFG String [ProductionRule] |
startNonterminal :: CFG -> String Source #
nonterminals :: CFG -> [String] Source #
prodRuleToStr :: ProductionRule -> [Char] Source #
symbolToStr :: Symbol -> [Char] Source #