Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Trees.Common
Synopsis
- type Identifier = Text
- data Identifier'
- type IdCnt = Integer
- data BinaryOperator
- data UnaryOperator = UnMinusOp
- data BooleanOperator
- data ArithmeticOperator
- data ComparisonOperator
- type IsRec = Bool
- data Type
- type Arity = Int
- data PrimitiveValue
Common Components of Program Representations
Identifier
type Identifier = Text Source #
data Identifier' Source #
Constructors
Txt Identifier | |
Gen IdCnt Identifier |
Instances
Show Identifier' Source # | |
Defined in Trees.Common Methods showsPrec :: Int -> Identifier' -> ShowS # show :: Identifier' -> String # showList :: [Identifier'] -> ShowS # | |
Eq Identifier' Source # | |
Defined in Trees.Common | |
Ord Identifier' Source # | |
Defined in Trees.Common Methods compare :: Identifier' -> Identifier' -> Ordering # (<) :: Identifier' -> Identifier' -> Bool # (<=) :: Identifier' -> Identifier' -> Bool # (>) :: Identifier' -> Identifier' -> Bool # (>=) :: Identifier' -> Identifier' -> Bool # max :: Identifier' -> Identifier' -> Identifier' # min :: Identifier' -> Identifier' -> Identifier' # |
Operators
data BinaryOperator Source #
Binary operator.
Constructors
BoolOp BooleanOperator | Boolean operator, see |
ArithOp ArithmeticOperator | Arithmetic operator, see |
CompOp ComparisonOperator | Comparison operator, see |
Instances
Show BinaryOperator Source # | |
Defined in Trees.Common Methods showsPrec :: Int -> BinaryOperator -> ShowS # show :: BinaryOperator -> String # showList :: [BinaryOperator] -> ShowS # | |
Eq BinaryOperator Source # | |
Defined in Trees.Common Methods (==) :: BinaryOperator -> BinaryOperator -> Bool # (/=) :: BinaryOperator -> BinaryOperator -> Bool # |
data UnaryOperator Source #
Unary operator.
Constructors
UnMinusOp | Unary minus operator ( |
Instances
Bounded UnaryOperator Source # | |
Defined in Trees.Common | |
Enum UnaryOperator Source # | |
Defined in Trees.Common Methods succ :: UnaryOperator -> UnaryOperator # pred :: UnaryOperator -> UnaryOperator # toEnum :: Int -> UnaryOperator # fromEnum :: UnaryOperator -> Int # enumFrom :: UnaryOperator -> [UnaryOperator] # enumFromThen :: UnaryOperator -> UnaryOperator -> [UnaryOperator] # enumFromTo :: UnaryOperator -> UnaryOperator -> [UnaryOperator] # enumFromThenTo :: UnaryOperator -> UnaryOperator -> UnaryOperator -> [UnaryOperator] # | |
Show UnaryOperator Source # | |
Defined in Trees.Common Methods showsPrec :: Int -> UnaryOperator -> ShowS # show :: UnaryOperator -> String # showList :: [UnaryOperator] -> ShowS # | |
Eq UnaryOperator Source # | |
Defined in Trees.Common Methods (==) :: UnaryOperator -> UnaryOperator -> Bool # (/=) :: UnaryOperator -> UnaryOperator -> Bool # |
data BooleanOperator Source #
Boolean operator.
Instances
Bounded BooleanOperator Source # | |
Defined in Trees.Common | |
Enum BooleanOperator Source # | |
Defined in Trees.Common Methods succ :: BooleanOperator -> BooleanOperator # pred :: BooleanOperator -> BooleanOperator # toEnum :: Int -> BooleanOperator # fromEnum :: BooleanOperator -> Int # enumFrom :: BooleanOperator -> [BooleanOperator] # enumFromThen :: BooleanOperator -> BooleanOperator -> [BooleanOperator] # enumFromTo :: BooleanOperator -> BooleanOperator -> [BooleanOperator] # enumFromThenTo :: BooleanOperator -> BooleanOperator -> BooleanOperator -> [BooleanOperator] # | |
Show BooleanOperator Source # | |
Defined in Trees.Common Methods showsPrec :: Int -> BooleanOperator -> ShowS # show :: BooleanOperator -> String # showList :: [BooleanOperator] -> ShowS # | |
Eq BooleanOperator Source # | |
Defined in Trees.Common Methods (==) :: BooleanOperator -> BooleanOperator -> Bool # (/=) :: BooleanOperator -> BooleanOperator -> Bool # |
data ArithmeticOperator Source #
Arithmetic operator.
Constructors
PlusOp | Addition operator ( |
MinusOp | Subtraction operator ( |
MulOp | Multiplication operator ( |
DivOp | Division operator ( |
Instances
Bounded ArithmeticOperator Source # | |
Defined in Trees.Common | |
Enum ArithmeticOperator Source # | |
Defined in Trees.Common Methods succ :: ArithmeticOperator -> ArithmeticOperator # pred :: ArithmeticOperator -> ArithmeticOperator # toEnum :: Int -> ArithmeticOperator # fromEnum :: ArithmeticOperator -> Int # enumFrom :: ArithmeticOperator -> [ArithmeticOperator] # enumFromThen :: ArithmeticOperator -> ArithmeticOperator -> [ArithmeticOperator] # enumFromTo :: ArithmeticOperator -> ArithmeticOperator -> [ArithmeticOperator] # enumFromThenTo :: ArithmeticOperator -> ArithmeticOperator -> ArithmeticOperator -> [ArithmeticOperator] # | |
Show ArithmeticOperator Source # | |
Defined in Trees.Common Methods showsPrec :: Int -> ArithmeticOperator -> ShowS # show :: ArithmeticOperator -> String # showList :: [ArithmeticOperator] -> ShowS # | |
Eq ArithmeticOperator Source # | |
Defined in Trees.Common Methods (==) :: ArithmeticOperator -> ArithmeticOperator -> Bool # (/=) :: ArithmeticOperator -> ArithmeticOperator -> Bool # |
data ComparisonOperator Source #
Comparison operator.
Constructors
EqOp | Equality operator ( |
NeOp | Non-equality operator ( |
LtOp | Less than operator ( |
LeOp | Less than or equal operator ( |
GtOp | Greater than operator ( |
GeOp | Greater than or equal operator ( |
Instances
Bounded ComparisonOperator Source # | |
Defined in Trees.Common | |
Enum ComparisonOperator Source # | |
Defined in Trees.Common Methods succ :: ComparisonOperator -> ComparisonOperator # pred :: ComparisonOperator -> ComparisonOperator # toEnum :: Int -> ComparisonOperator # fromEnum :: ComparisonOperator -> Int # enumFrom :: ComparisonOperator -> [ComparisonOperator] # enumFromThen :: ComparisonOperator -> ComparisonOperator -> [ComparisonOperator] # enumFromTo :: ComparisonOperator -> ComparisonOperator -> [ComparisonOperator] # enumFromThenTo :: ComparisonOperator -> ComparisonOperator -> ComparisonOperator -> [ComparisonOperator] # | |
Show ComparisonOperator Source # | |
Defined in Trees.Common Methods showsPrec :: Int -> ComparisonOperator -> ShowS # show :: ComparisonOperator -> String # showList :: [ComparisonOperator] -> ShowS # | |
Eq ComparisonOperator Source # | |
Defined in Trees.Common Methods (==) :: ComparisonOperator -> ComparisonOperator -> Bool # (/=) :: ComparisonOperator -> ComparisonOperator -> Bool # |
Recursive Functions
Types
All existing types.
Constructors
TUnit | Unit type |
TBool | Boolean type. |
TInt | Integer type. |
TFun Type Type | Function type. It contains the type of the first parameter and the result of the function
(e.g., |
Values
data PrimitiveValue Source #
Primitive value.
Constructors
PrimValUnit | Unit value ( |
PrimValBool Bool | Boolean value ( |
PrimValInt Int64 | Int value (e.g., |
Instances
Show PrimitiveValue Source # | |
Defined in Trees.Common Methods showsPrec :: Int -> PrimitiveValue -> ShowS # show :: PrimitiveValue -> String # showList :: [PrimitiveValue] -> ShowS # | |
Eq PrimitiveValue Source # | |
Defined in Trees.Common Methods (==) :: PrimitiveValue -> PrimitiveValue -> Bool # (/=) :: PrimitiveValue -> PrimitiveValue -> Bool # |