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

Happy.Frontend.AbsSyn

Documentation

data BookendedAbsSyn Source #

Constructors

BookendedAbsSyn (Maybe String) AbsSyn (Maybe String) 

data AbsSyn Source #

Constructors

AbsSyn [Directive String] [Rule] 

data Directive a Source #

Constructors

TokenType String 
TokenSpec [(a, String)] 
TokenName String (Maybe String) Bool 
TokenLexer String String 
TokenErrorHandlerType String 
TokenImportedIdentity 
TokenMonad String String String String 
TokenNonassoc [String] 
TokenRight [String] 
TokenLeft [String] 
TokenExpect Int 
TokenError String 
TokenAttributetype String 
TokenAttribute String String 

Instances

Instances details
Show a => Show (Directive a) Source # 
Instance details

Defined in Happy.Frontend.AbsSyn

Methods

showsPrec :: Int -> Directive a -> ShowS

show :: Directive a -> String

showList :: [Directive a] -> ShowS

getTokenType :: [Directive t] -> String Source #

getTokenSpec :: [Directive t] -> [(t, String)] Source #

getLexer :: [Directive t] -> Maybe (String, String) Source #

getMonad :: [Directive t] -> (Bool, String, String, String, String) Source #

getError :: [Directive t] -> Maybe String Source #

getPrioNames :: Directive t -> [String] Source #

getExpect :: [Directive t] -> Maybe Int Source #

getAttributes :: [Directive t] -> [(String, String)] Source #

getAttributetype :: [Directive t] -> Maybe String Source #

data Rule Source #

Constructors

Rule String [String] [Prod] (Maybe String) 

data Prod Source #

Constructors

Prod [Term] String Int Prec 

data Term Source #

Constructors

App String [Term] 

data Prec Source #

Constructors

PrecNone 
PrecShift 
PrecId String 

Instances

Instances details
Show Prec Source # 
Instance details

Defined in Happy.Frontend.AbsSyn

Methods

showsPrec :: Int -> Prec -> ShowS

show :: Prec -> String

showList :: [Prec] -> ShowS