happy-lib-2.0.2: Happy is a parser generator for Haskell implemented using this library
Safe HaskellSafe-Inferred
LanguageHaskell98

Happy.Grammar

Description

This module exports the Grammar data type, which

Synopsis

Documentation

type Name = Int Source #

data Production Source #

Constructors

Production Name [Name] (String, [Int]) Priority 

Instances

Instances details
Show Production Source # 
Instance details

Defined in Happy.Grammar

Methods

showsPrec :: Int -> Production -> ShowS

show :: Production -> String

showList :: [Production] -> ShowS

data Grammar Source #

Constructors

Grammar 

Fields

Instances

Instances details
Show Grammar Source # 
Instance details

Defined in Happy.Grammar

Methods

showsPrec :: Int -> Grammar -> ShowS

show :: Grammar -> String

showList :: [Grammar] -> ShowS

data Priority Source #

Constructors

No 
Prio Assoc Int 
PrioLowest 

Instances

Instances details
Show Priority Source # 
Instance details

Defined in Happy.Grammar

Methods

showsPrec :: Int -> Priority -> ShowS

show :: Priority -> String

showList :: [Priority] -> ShowS

Eq Priority Source # 
Instance details

Defined in Happy.Grammar

Methods

(==) :: Priority -> Priority -> Bool

(/=) :: Priority -> Priority -> Bool

data Assoc Source #

Constructors

LeftAssoc 
RightAssoc 
None 

Instances

Instances details
Show Assoc Source # 
Instance details

Defined in Happy.Grammar

Methods

showsPrec :: Int -> Assoc -> ShowS

show :: Assoc -> String

showList :: [Assoc] -> ShowS

data Pragmas Source #

Stuff like `%monad`, `%expect`

Constructors

Pragmas 

Fields

errorName :: String Source #

startName :: String Source #

dummyName :: String Source #

eofName :: String Source #

mapDollarDollar :: String -> Maybe (String -> String) Source #