| Safe Haskell | None |
|---|---|
| Language | Haskell98 |
Happy.Tabular.LALR
Documentation
genActionTable :: Grammar e -> ([Name] -> NameSet) -> [Lr1State] -> ActionTable Source #
genGotoTable :: Grammar e -> [ItemSetWithGotos] -> GotoTable Source #
genLR0items :: Grammar e -> (Name -> RuleList) -> [ItemSetWithGotos] Source #
precalcClosure0 :: Grammar e -> Name -> RuleList Source #
calcLookaheads :: Int -> [(Int, Lr0Item, NameSet)] -> Array Int [(Lr0Item, Int, Lr0Item)] -> Array Int [(Lr0Item, NameSet)] Source #
countConflicts :: ActionTable -> (Array Int (Int, Int), (Int, Int)) Source #
Constructors
| LR'Shift Int Priority | |
| LR'Reduce Int Priority | |
| LR'Accept | |
| LR'Fail | |
| LR'MustFail | |
| LR'Multiple [LRAction] LRAction |