BNFC-2.9.4.1: A compiler front-end generator.
Safe HaskellSafe-Inferred
LanguageHaskell2010

BNFC.Abs

Description

The abstract syntax of language BNFC.

Synopsis

Documentation

data Grammar Source #

Constructors

Grammar [Def] 

Instances

Instances details
Eq Grammar Source # 
Instance details

Defined in BNFC.Abs

Ord Grammar Source # 
Instance details

Defined in BNFC.Abs

Read Grammar Source # 
Instance details

Defined in BNFC.Abs

Show Grammar Source # 
Instance details

Defined in BNFC.Abs

Print Grammar Source # 
Instance details

Defined in BNFC.Print

Methods

prt :: Int -> Grammar -> Doc Source #

data Def Source #

Instances

Instances details
Eq Def Source # 
Instance details

Defined in BNFC.Abs

Methods

(==) :: Def -> Def -> Bool Source #

(/=) :: Def -> Def -> Bool Source #

Ord Def Source # 
Instance details

Defined in BNFC.Abs

Methods

compare :: Def -> Def -> Ordering Source #

(<) :: Def -> Def -> Bool Source #

(<=) :: Def -> Def -> Bool Source #

(>) :: Def -> Def -> Bool Source #

(>=) :: Def -> Def -> Bool Source #

max :: Def -> Def -> Def Source #

min :: Def -> Def -> Def Source #

Read Def Source # 
Instance details

Defined in BNFC.Abs

Show Def Source # 
Instance details

Defined in BNFC.Abs

Print Def Source # 
Instance details

Defined in BNFC.Print

Methods

prt :: Int -> Def -> Doc Source #

Print [Def] Source # 
Instance details

Defined in BNFC.Print

Methods

prt :: Int -> [Def] -> Doc Source #

data Item Source #

Constructors

Terminal String 
NTerminal Cat 

Instances

Instances details
Eq Item Source # 
Instance details

Defined in BNFC.Abs

Methods

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

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

Ord Item Source # 
Instance details

Defined in BNFC.Abs

Read Item Source # 
Instance details

Defined in BNFC.Abs

Show Item Source # 
Instance details

Defined in BNFC.Abs

Print Item Source # 
Instance details

Defined in BNFC.Print

Methods

prt :: Int -> Item -> Doc Source #

Print [Item] Source # 
Instance details

Defined in BNFC.Print

Methods

prt :: Int -> [Item] -> Doc Source #

data Cat Source #

Constructors

ListCat Cat 
IdCat Identifier 

Instances

Instances details
Eq Cat Source # 
Instance details

Defined in BNFC.Abs

Methods

(==) :: Cat -> Cat -> Bool Source #

(/=) :: Cat -> Cat -> Bool Source #

Ord Cat Source # 
Instance details

Defined in BNFC.Abs

Methods

compare :: Cat -> Cat -> Ordering Source #

(<) :: Cat -> Cat -> Bool Source #

(<=) :: Cat -> Cat -> Bool Source #

(>) :: Cat -> Cat -> Bool Source #

(>=) :: Cat -> Cat -> Bool Source #

max :: Cat -> Cat -> Cat Source #

min :: Cat -> Cat -> Cat Source #

Read Cat Source # 
Instance details

Defined in BNFC.Abs

Show Cat Source # 
Instance details

Defined in BNFC.Abs

Print Cat Source # 
Instance details

Defined in BNFC.Print

Methods

prt :: Int -> Cat -> Doc Source #

Print [Cat] Source # 
Instance details

Defined in BNFC.Print

Methods

prt :: Int -> [Cat] -> Doc Source #

data Label Source #

Instances

Instances details
Eq Label Source # 
Instance details

Defined in BNFC.Abs

Methods

(==) :: Label -> Label -> Bool Source #

(/=) :: Label -> Label -> Bool Source #

Ord Label Source # 
Instance details

Defined in BNFC.Abs

Read Label Source # 
Instance details

Defined in BNFC.Abs

Show Label Source # 
Instance details

Defined in BNFC.Abs

Print Label Source # 
Instance details

Defined in BNFC.Print

Methods

prt :: Int -> Label -> Doc Source #

data Arg Source #

Constructors

Arg Identifier 

Instances

Instances details
Eq Arg Source # 
Instance details

Defined in BNFC.Abs

Methods

(==) :: Arg -> Arg -> Bool Source #

(/=) :: Arg -> Arg -> Bool Source #

Ord Arg Source # 
Instance details

Defined in BNFC.Abs

Methods

compare :: Arg -> Arg -> Ordering Source #

(<) :: Arg -> Arg -> Bool Source #

(<=) :: Arg -> Arg -> Bool Source #

(>) :: Arg -> Arg -> Bool Source #

(>=) :: Arg -> Arg -> Bool Source #

max :: Arg -> Arg -> Arg Source #

min :: Arg -> Arg -> Arg Source #

Read Arg Source # 
Instance details

Defined in BNFC.Abs

Show Arg Source # 
Instance details

Defined in BNFC.Abs

Print Arg Source # 
Instance details

Defined in BNFC.Print

Methods

prt :: Int -> Arg -> Doc Source #

Print [Arg] Source # 
Instance details

Defined in BNFC.Print

Methods

prt :: Int -> [Arg] -> Doc Source #

data Exp Source #

Instances

Instances details
Eq Exp Source # 
Instance details

Defined in BNFC.Abs

Methods

(==) :: Exp -> Exp -> Bool Source #

(/=) :: Exp -> Exp -> Bool Source #

Ord Exp Source # 
Instance details

Defined in BNFC.Abs

Methods

compare :: Exp -> Exp -> Ordering Source #

(<) :: Exp -> Exp -> Bool Source #

(<=) :: Exp -> Exp -> Bool Source #

(>) :: Exp -> Exp -> Bool Source #

(>=) :: Exp -> Exp -> Bool Source #

max :: Exp -> Exp -> Exp Source #

min :: Exp -> Exp -> Exp Source #

Read Exp Source # 
Instance details

Defined in BNFC.Abs

Show Exp Source # 
Instance details

Defined in BNFC.Abs

Print Exp Source # 
Instance details

Defined in BNFC.Print

Methods

prt :: Int -> Exp -> Doc Source #

Print [Exp] Source # 
Instance details

Defined in BNFC.Print

Methods

prt :: Int -> [Exp] -> Doc Source #

data RHS Source #

Constructors

RHS [Item] 

Instances

Instances details
Eq RHS Source # 
Instance details

Defined in BNFC.Abs

Methods

(==) :: RHS -> RHS -> Bool Source #

(/=) :: RHS -> RHS -> Bool Source #

Ord RHS Source # 
Instance details

Defined in BNFC.Abs

Methods

compare :: RHS -> RHS -> Ordering Source #

(<) :: RHS -> RHS -> Bool Source #

(<=) :: RHS -> RHS -> Bool Source #

(>) :: RHS -> RHS -> Bool Source #

(>=) :: RHS -> RHS -> Bool Source #

max :: RHS -> RHS -> RHS Source #

min :: RHS -> RHS -> RHS Source #

Read RHS Source # 
Instance details

Defined in BNFC.Abs

Show RHS Source # 
Instance details

Defined in BNFC.Abs

Print RHS Source # 
Instance details

Defined in BNFC.Print

Methods

prt :: Int -> RHS -> Doc Source #

Print [RHS] Source # 
Instance details

Defined in BNFC.Print

Methods

prt :: Int -> [RHS] -> Doc Source #

data Reg Source #

Instances

Instances details
Eq Reg Source # 
Instance details

Defined in BNFC.Abs

Methods

(==) :: Reg -> Reg -> Bool Source #

(/=) :: Reg -> Reg -> Bool Source #

Ord Reg Source # 
Instance details

Defined in BNFC.Abs

Methods

compare :: Reg -> Reg -> Ordering Source #

(<) :: Reg -> Reg -> Bool Source #

(<=) :: Reg -> Reg -> Bool Source #

(>) :: Reg -> Reg -> Bool Source #

(>=) :: Reg -> Reg -> Bool Source #

max :: Reg -> Reg -> Reg Source #

min :: Reg -> Reg -> Reg Source #

Read Reg Source # 
Instance details

Defined in BNFC.Abs

Show Reg Source # 
Instance details

Defined in BNFC.Abs

Print Reg Source # 
Instance details

Defined in BNFC.Print

Methods

prt :: Int -> Reg -> Doc Source #

type BNFC'Position = Maybe (Int, Int) Source #

Start position (line, column) of something.

class HasPosition a where Source #

Get the start position of something.

Instances

Instances details
HasPosition Identifier Source # 
Instance details

Defined in BNFC.Abs