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

Happy.Frontend.AbsSyn

Synopsis

Documentation

data AbsSyn e Source #

Constructors

AbsSyn [Directive String] [Rule e] 

getErrorExpectedMode :: Eq t => [Directive t] -> ErrorExpectedMode Source #

getAttributeGrammarExtras :: [Directive t] -> Maybe AttributeGrammarExtras Source #

parseTokenSpec :: String -> TokenSpec Source #

Parse a token spec.

The first occurence of $$ indicates an expression in which the $$ will be substituted for the actual lexed token. $$ in string or char literals ('".."' and '\'.'') however does not count.

data Rule e Source #

Constructors

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

data Prod e Source #

Constructors

Prod [Term] e Int Prec 

data Term Source #

Constructors

App String [Term] 

data Prec Source #

Instances

Instances details
Show Prec Source # 
Instance details

Defined in Happy.Frontend.AbsSyn

Methods

showsPrec :: Int -> Prec -> ShowS #

show :: Prec -> String #

showList :: [Prec] -> ShowS #

data TokenSpec #

Constructors

TokenFixed String 
TokenWithValue ExpressionWithHole 

Instances

Instances details
Show TokenSpec 
Instance details

Defined in Happy.Grammar

Eq TokenSpec 
Instance details

Defined in Happy.Grammar