Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 3d8af0cc57
Fetching contributors…

Cannot retrieve contributors at this time

15 lines (11 sloc) 0.433 kb
-- | Helpers for working with general context-free grammars.
module CFG.Helpers.CFG (
-- * Helpers for constructing the grammar.
ruleTerminal, ruleNonTerminal
)
where
import CFG.Types
ruleTerminal :: RuleName -> Char -> NamedCFGRule
ruleTerminal name prod = CFGTerminalRule name (charToSymbol prod)
ruleNonTerminal :: RuleName -> [[RuleName]] -> NamedCFGRule
ruleNonTerminal name prods = CFGNonTerminalRule name prods
Jump to Line
Something went wrong with that request. Please try again.