Safe Haskell | None |
---|
TIP.AbsTIP
Description
The abstract syntax of language TIP.
Synopsis
- data Start = Start [Decl]
- data Decl
- = DeclareDatatype AttrSymbol Datatype
- | DeclareDatatypes [DatatypeName] [Datatype]
- | DeclareSort AttrSymbol Integer
- | DeclareConst AttrSymbol ConstType
- | DeclareFun AttrSymbol FunType
- | DefineFun FunDec Expr
- | DefineFunRec FunDec Expr
- | DefineFunsRec [BracketedFunDec] [Expr]
- | Formula Assertion [Attr] Expr
- | FormulaPar Assertion [Attr] Par Expr
- data Assertion
- data Par = Par [Symbol]
- data ConstType
- data InnerFunType = InnerFunType [Type] Type
- data FunType
- data InnerFunDec = InnerFunDec [Binding] Type
- data FunDec
- data BracketedFunDec = BracketedFunDec FunDec
- data DatatypeName = DatatypeName AttrSymbol Integer
- data InnerDatatype = InnerDatatype [Constructor]
- data Datatype
- data Constructor = Constructor AttrSymbol [Binding]
- data Binding = Binding Symbol Type
- data LetDecl = LetDecl Symbol Expr
- data Type
- data Expr
- data Lit
- data Binder
- data Case = Case Pattern Expr
- data Pattern
- data Head
- data PolySymbol
- data AttrSymbol = AttrSymbol Symbol [Attr]
- data Attr
- data Symbol
- newtype UnquotedSymbol = UnquotedSymbol ((Int, Int), String)
- newtype QuotedSymbol = QuotedSymbol ((Int, Int), String)
- newtype Keyword = Keyword String
- type BNFC'Position = Maybe (Int, Int)
- pattern BNFC'NoPosition :: BNFC'Position
- pattern BNFC'Position :: Int -> Int -> BNFC'Position
- class HasPosition a where
- hasPosition :: a -> BNFC'Position
Documentation
Constructors
Constructors
ConstTypeMono Type | |
ConstTypePoly Par Type |
data InnerFunType Source #
Constructors
InnerFunType [Type] Type |
Instances
Eq InnerFunType Source # | |
Defined in TIP.AbsTIP | |
Ord InnerFunType Source # | |
Defined in TIP.AbsTIP Methods compare :: InnerFunType -> InnerFunType -> Ordering (<) :: InnerFunType -> InnerFunType -> Bool (<=) :: InnerFunType -> InnerFunType -> Bool (>) :: InnerFunType -> InnerFunType -> Bool (>=) :: InnerFunType -> InnerFunType -> Bool max :: InnerFunType -> InnerFunType -> InnerFunType min :: InnerFunType -> InnerFunType -> InnerFunType | |
Read InnerFunType Source # | |
Defined in TIP.AbsTIP Methods readsPrec :: Int -> ReadS InnerFunType readList :: ReadS [InnerFunType] readPrec :: ReadPrec InnerFunType readListPrec :: ReadPrec [InnerFunType] | |
Show InnerFunType Source # | |
Defined in TIP.AbsTIP Methods showsPrec :: Int -> InnerFunType -> ShowS show :: InnerFunType -> String showList :: [InnerFunType] -> ShowS | |
Print InnerFunType Source # | |
Defined in TIP.PrintTIP Methods prt :: Int -> InnerFunType -> Doc Source # |
Constructors
FunTypeMono InnerFunType | |
FunTypePoly Par InnerFunType |
data InnerFunDec Source #
Constructors
InnerFunDec [Binding] Type |
Instances
Eq InnerFunDec Source # | |
Defined in TIP.AbsTIP | |
Ord InnerFunDec Source # | |
Defined in TIP.AbsTIP Methods compare :: InnerFunDec -> InnerFunDec -> Ordering (<) :: InnerFunDec -> InnerFunDec -> Bool (<=) :: InnerFunDec -> InnerFunDec -> Bool (>) :: InnerFunDec -> InnerFunDec -> Bool (>=) :: InnerFunDec -> InnerFunDec -> Bool max :: InnerFunDec -> InnerFunDec -> InnerFunDec min :: InnerFunDec -> InnerFunDec -> InnerFunDec | |
Read InnerFunDec Source # | |
Defined in TIP.AbsTIP Methods readsPrec :: Int -> ReadS InnerFunDec readList :: ReadS [InnerFunDec] readPrec :: ReadPrec InnerFunDec readListPrec :: ReadPrec [InnerFunDec] | |
Show InnerFunDec Source # | |
Defined in TIP.AbsTIP Methods showsPrec :: Int -> InnerFunDec -> ShowS show :: InnerFunDec -> String showList :: [InnerFunDec] -> ShowS | |
Print InnerFunDec Source # | |
Defined in TIP.PrintTIP Methods prt :: Int -> InnerFunDec -> Doc Source # |
Constructors
FunDecMono AttrSymbol InnerFunDec | |
FunDecPoly AttrSymbol Par InnerFunDec |
data BracketedFunDec Source #
Constructors
BracketedFunDec FunDec |
Instances
data DatatypeName Source #
Constructors
DatatypeName AttrSymbol Integer |
Instances
Eq DatatypeName Source # | |
Defined in TIP.AbsTIP | |
Ord DatatypeName Source # | |
Defined in TIP.AbsTIP Methods compare :: DatatypeName -> DatatypeName -> Ordering (<) :: DatatypeName -> DatatypeName -> Bool (<=) :: DatatypeName -> DatatypeName -> Bool (>) :: DatatypeName -> DatatypeName -> Bool (>=) :: DatatypeName -> DatatypeName -> Bool max :: DatatypeName -> DatatypeName -> DatatypeName min :: DatatypeName -> DatatypeName -> DatatypeName | |
Read DatatypeName Source # | |
Defined in TIP.AbsTIP Methods readsPrec :: Int -> ReadS DatatypeName readList :: ReadS [DatatypeName] readPrec :: ReadPrec DatatypeName readListPrec :: ReadPrec [DatatypeName] | |
Show DatatypeName Source # | |
Defined in TIP.AbsTIP Methods showsPrec :: Int -> DatatypeName -> ShowS show :: DatatypeName -> String showList :: [DatatypeName] -> ShowS | |
Print DatatypeName Source # | |
Defined in TIP.PrintTIP Methods prt :: Int -> DatatypeName -> Doc Source # | |
Print [DatatypeName] Source # | |
Defined in TIP.PrintTIP Methods prt :: Int -> [DatatypeName] -> Doc Source # |
data InnerDatatype Source #
Constructors
InnerDatatype [Constructor] |
Instances
Eq InnerDatatype Source # | |
Defined in TIP.AbsTIP | |
Ord InnerDatatype Source # | |
Defined in TIP.AbsTIP Methods compare :: InnerDatatype -> InnerDatatype -> Ordering (<) :: InnerDatatype -> InnerDatatype -> Bool (<=) :: InnerDatatype -> InnerDatatype -> Bool (>) :: InnerDatatype -> InnerDatatype -> Bool (>=) :: InnerDatatype -> InnerDatatype -> Bool max :: InnerDatatype -> InnerDatatype -> InnerDatatype min :: InnerDatatype -> InnerDatatype -> InnerDatatype | |
Read InnerDatatype Source # | |
Defined in TIP.AbsTIP Methods readsPrec :: Int -> ReadS InnerDatatype readList :: ReadS [InnerDatatype] readPrec :: ReadPrec InnerDatatype readListPrec :: ReadPrec [InnerDatatype] | |
Show InnerDatatype Source # | |
Defined in TIP.AbsTIP Methods showsPrec :: Int -> InnerDatatype -> ShowS show :: InnerDatatype -> String showList :: [InnerDatatype] -> ShowS | |
Print InnerDatatype Source # | |
Defined in TIP.PrintTIP Methods prt :: Int -> InnerDatatype -> Doc Source # |
Constructors
DatatypeMono InnerDatatype | |
DatatypePoly Par InnerDatatype |
data Constructor Source #
Constructors
Constructor AttrSymbol [Binding] |
Instances
Eq Constructor Source # | |
Defined in TIP.AbsTIP | |
Ord Constructor Source # | |
Defined in TIP.AbsTIP Methods compare :: Constructor -> Constructor -> Ordering (<) :: Constructor -> Constructor -> Bool (<=) :: Constructor -> Constructor -> Bool (>) :: Constructor -> Constructor -> Bool (>=) :: Constructor -> Constructor -> Bool max :: Constructor -> Constructor -> Constructor min :: Constructor -> Constructor -> Constructor | |
Read Constructor Source # | |
Defined in TIP.AbsTIP Methods readsPrec :: Int -> ReadS Constructor readList :: ReadS [Constructor] readPrec :: ReadPrec Constructor readListPrec :: ReadPrec [Constructor] | |
Show Constructor Source # | |
Defined in TIP.AbsTIP Methods showsPrec :: Int -> Constructor -> ShowS show :: Constructor -> String showList :: [Constructor] -> ShowS | |
Print Constructor Source # | |
Defined in TIP.PrintTIP Methods prt :: Int -> Constructor -> Doc Source # | |
Print [Constructor] Source # | |
Defined in TIP.PrintTIP Methods prt :: Int -> [Constructor] -> Doc Source # |
Constructors
Var PolySymbol | |
App Head [Expr] | |
Match Expr [Case] | |
Let [LetDecl] Expr | |
Binder Binder [Binding] Expr | |
Lit Lit |
Constructors
Const PolySymbol | |
At | |
IfThenElse | |
And | |
Or | |
Not | |
Implies | |
Equal | |
Distinct | |
NumAdd | |
NumSub | |
NumMul | |
NumDiv | |
IntDiv | |
IntMod | |
NumGt | |
NumGe | |
NumLt | |
NumLe | |
NumWiden |
data PolySymbol Source #
Instances
Eq PolySymbol Source # | |
Defined in TIP.AbsTIP | |
Ord PolySymbol Source # | |
Defined in TIP.AbsTIP Methods compare :: PolySymbol -> PolySymbol -> Ordering (<) :: PolySymbol -> PolySymbol -> Bool (<=) :: PolySymbol -> PolySymbol -> Bool (>) :: PolySymbol -> PolySymbol -> Bool (>=) :: PolySymbol -> PolySymbol -> Bool max :: PolySymbol -> PolySymbol -> PolySymbol min :: PolySymbol -> PolySymbol -> PolySymbol | |
Read PolySymbol Source # | |
Defined in TIP.AbsTIP Methods readsPrec :: Int -> ReadS PolySymbol readList :: ReadS [PolySymbol] readPrec :: ReadPrec PolySymbol readListPrec :: ReadPrec [PolySymbol] | |
Show PolySymbol Source # | |
Defined in TIP.AbsTIP Methods showsPrec :: Int -> PolySymbol -> ShowS show :: PolySymbol -> String showList :: [PolySymbol] -> ShowS | |
Print PolySymbol Source # | |
Defined in TIP.PrintTIP Methods prt :: Int -> PolySymbol -> Doc Source # |
data AttrSymbol Source #
Constructors
AttrSymbol Symbol [Attr] |
Instances
Eq AttrSymbol Source # | |
Defined in TIP.AbsTIP | |
Ord AttrSymbol Source # | |
Defined in TIP.AbsTIP Methods compare :: AttrSymbol -> AttrSymbol -> Ordering (<) :: AttrSymbol -> AttrSymbol -> Bool (<=) :: AttrSymbol -> AttrSymbol -> Bool (>) :: AttrSymbol -> AttrSymbol -> Bool (>=) :: AttrSymbol -> AttrSymbol -> Bool max :: AttrSymbol -> AttrSymbol -> AttrSymbol min :: AttrSymbol -> AttrSymbol -> AttrSymbol | |
Read AttrSymbol Source # | |
Defined in TIP.AbsTIP Methods readsPrec :: Int -> ReadS AttrSymbol readList :: ReadS [AttrSymbol] readPrec :: ReadPrec AttrSymbol readListPrec :: ReadPrec [AttrSymbol] | |
Show AttrSymbol Source # | |
Defined in TIP.AbsTIP Methods showsPrec :: Int -> AttrSymbol -> ShowS show :: AttrSymbol -> String showList :: [AttrSymbol] -> ShowS | |
Print AttrSymbol Source # | |
Defined in TIP.PrintTIP Methods prt :: Int -> AttrSymbol -> Doc Source # |
Constructors
Unquoted UnquotedSymbol | |
Quoted QuotedSymbol |
newtype UnquotedSymbol Source #
Constructors
UnquotedSymbol ((Int, Int), String) |
Instances
newtype QuotedSymbol Source #
Constructors
QuotedSymbol ((Int, Int), String) |
Instances
Eq QuotedSymbol Source # | |
Defined in TIP.AbsTIP | |
Ord QuotedSymbol Source # | |
Defined in TIP.AbsTIP Methods compare :: QuotedSymbol -> QuotedSymbol -> Ordering (<) :: QuotedSymbol -> QuotedSymbol -> Bool (<=) :: QuotedSymbol -> QuotedSymbol -> Bool (>) :: QuotedSymbol -> QuotedSymbol -> Bool (>=) :: QuotedSymbol -> QuotedSymbol -> Bool max :: QuotedSymbol -> QuotedSymbol -> QuotedSymbol min :: QuotedSymbol -> QuotedSymbol -> QuotedSymbol | |
Read QuotedSymbol Source # | |
Defined in TIP.AbsTIP Methods readsPrec :: Int -> ReadS QuotedSymbol readList :: ReadS [QuotedSymbol] readPrec :: ReadPrec QuotedSymbol readListPrec :: ReadPrec [QuotedSymbol] | |
Show QuotedSymbol Source # | |
Defined in TIP.AbsTIP Methods showsPrec :: Int -> QuotedSymbol -> ShowS show :: QuotedSymbol -> String showList :: [QuotedSymbol] -> ShowS | |
HasPosition QuotedSymbol Source # | |
Defined in TIP.AbsTIP Methods | |
Print QuotedSymbol Source # | |
Defined in TIP.PrintTIP Methods prt :: Int -> QuotedSymbol -> Doc Source # |
Constructors
Keyword String |
type BNFC'Position = Maybe (Int, Int) Source #
Start position (line, column) of something.
pattern BNFC'NoPosition :: BNFC'Position Source #
pattern BNFC'Position :: Int -> Int -> BNFC'Position Source #
class HasPosition a where Source #
Get the start position of something.
Methods
hasPosition :: a -> BNFC'Position Source #
Instances
HasPosition QuotedSymbol Source # | |
Defined in TIP.AbsTIP Methods | |
HasPosition UnquotedSymbol Source # | |
Defined in TIP.AbsTIP Methods |