happy-lib-2.1.6: Happy is a parser generator for Haskell implemented using this library
Safe HaskellNone
LanguageHaskell98

Happy.Tabular.LALR

Documentation

genLR0items :: Grammar e -> (Name -> RuleList) -> [ItemSetWithGotos] Source #

precalcClosure0 :: Grammar e -> Name -> RuleList Source #

propLookaheads Source #

Arguments

:: Grammar e 
-> [ItemSetWithGotos]

LR(0) kernel sets

-> ([Name] -> NameSet)

First function

-> ([(Int, Lr0Item, NameSet)], Array Int [(Lr0Item, Int, Lr0Item)]) 

mergeLookaheadInfo Source #

Arguments

:: Array Int [(Lr0Item, NameSet)]

lookahead info

-> [ItemSetWithGotos]

state table

-> [Lr1State] 

data Lr0Item Source #

Constructors

Lr0 !Int !Int 

Instances

Instances details
Show Lr0Item Source # 
Instance details

Defined in Happy.Tabular.LALR

Eq Lr0Item Source # 
Instance details

Defined in Happy.Tabular.LALR

Methods

(==) :: Lr0Item -> Lr0Item -> Bool #

(/=) :: Lr0Item -> Lr0Item -> Bool #

Ord Lr0Item Source # 
Instance details

Defined in Happy.Tabular.LALR

data Lr1Item Source #

Constructors

Lr1 !Int !Int NameSet 

Instances

Instances details
Show Lr1Item Source # 
Instance details

Defined in Happy.Tabular.LALR

data LRAction Source #

Instances

Instances details
Show LRAction Source # 
Instance details

Defined in Happy.Tabular.LALR

Eq LRAction Source # 
Instance details

Defined in Happy.Tabular.LALR

type Lr1State = ([Lr1Item], [(Name, Int)]) Source #

data Goto Source #

Constructors

Goto Int 
NoGoto 

Instances

Instances details
Show Goto Source # 
Instance details

Defined in Happy.Tabular.LALR

Methods

showsPrec :: Int -> Goto -> ShowS #

show :: Goto -> String #

showList :: [Goto] -> ShowS #

Eq Goto Source # 
Instance details

Defined in Happy.Tabular.LALR

Methods

(==) :: Goto -> Goto -> Bool #

(/=) :: Goto -> Goto -> Bool #