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