yapb-0.1.1: Yet Another Parser Builder (YAPB)

Safe HaskellSafe
LanguageHaskell2010

ParserTable

Documentation

data Item Source #

Instances
Eq Item Source # 
Instance details

Defined in ParserTable

Methods

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

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

Show Item Source # 
Instance details

Defined in ParserTable

Methods

showsPrec :: Int -> Item -> ShowS #

show :: Item -> String #

showList :: [Item] -> ShowS #

type Items = [Item] Source #

type Itemss = [Items] Source #

prItems' :: (Show t, Num t) => Handle -> t -> [Items] -> IO () Source #

data Action Source #

Constructors

Shift Int 
Reduce Int 
Accept 
Reject 
Instances
Eq Action Source # 
Instance details

Defined in ParserTable

Methods

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

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

Show Action Source # 
Instance details

Defined in ParserTable

lookupTable :: (Eq a, Eq b) => a -> b -> [(a, b, c)] -> Maybe c Source #

prActTbl :: (Show a1, Show a2, Show a3) => Handle -> [(a1, a2, a3)] -> IO () Source #

prGtTbl :: (Show a1, Show a2, Show a3) => Handle -> [(a1, a2, a3)] -> IO () Source #

data LALRAction Source #

Instances
Eq LALRAction Source # 
Instance details

Defined in ParserTable

Show LALRAction Source # 
Instance details

Defined in ParserTable

type LALRGotoTable = [([Int], Symbol, [Int])] Source #