| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
AST
Documentation
data Expression Source #
Constructors
| ExXi | |
| ExRoot | |
| ExTermination | |
| ExMeta Text | |
| ExAny Slot | |
| ExPhiMeet (Maybe String) Int Expression | |
| ExPhiAgain (Maybe String) Int Expression | |
| ExBytes Bytes |
Bundled Patterns
| pattern ExFormation :: [Binding] -> Expression | |
| pattern ExApplication :: Expression -> Argument -> Expression | |
| pattern ExDispatch :: Expression -> Attribute -> Expression |
Instances
| Show Expression Source # | |
Defined in AST Methods showsPrec :: Int -> Expression -> ShowS # show :: Expression -> String # showList :: [Expression] -> ShowS # | |
| Eq Expression Source # | |
Defined in AST | |
| Ord Expression Source # | |
Defined in AST Methods compare :: Expression -> Expression -> Ordering # (<) :: Expression -> Expression -> Bool # (<=) :: Expression -> Expression -> Bool # (>) :: Expression -> Expression -> Bool # (>=) :: Expression -> Expression -> Bool # max :: Expression -> Expression -> Expression # min :: Expression -> Expression -> Expression # | |
| Metas Expression Source # | |
Defined in Metas | |
| Slots Expression Source # | |
| FromJSON Expression Source # | |
Defined in Yaml Methods parseJSON :: Value -> Parser Expression Source # parseJSONList :: Value -> Parser [Expression] Source # | |
| ToCST Expression EXPRESSION Source # | |
Defined in CST Methods toCST :: Expression -> (Int, EOL) -> EXPRESSION Source # | |
| ToCST [Expression] APP_ARG Source # | |
| ToCST [Expression] APP_ARGS Source # | |
Constructors
| ArTau Attribute Expression | |
| ArAlpha Alpha Expression |
Instances
| Generic Argument Source # | |
| Show Argument Source # | |
| Eq Argument Source # | |
| Ord Argument Source # | |
| Metas Argument Source # | |
| Slots Argument Source # | |
| ToCST Argument PAIR Source # | |
| ToCST [Argument] BINDING Source # | |
| ToCST [Argument] BINDINGS Source # | |
| type Rep Argument Source # | |
Defined in AST type Rep Argument = D1 ('MetaData "Argument" "AST" "phino-0.0.0-inplace" 'False) (C1 ('MetaCons "ArTau" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Attribute) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Expression)) :+: C1 ('MetaCons "ArAlpha" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Alpha) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Expression))) | |
Instances
| Generic Alpha Source # | |
| Show Alpha Source # | |
| Eq Alpha Source # | |
| Ord Alpha Source # | |
| Metas Alpha Source # | |
| Slots Alpha Source # | |
| FromJSON Alpha Source # | |
| ToCST Alpha ALPHA Source # | |
| type Rep Alpha Source # | |
Defined in AST type Rep Alpha = D1 ('MetaData "Alpha" "AST" "phino-0.0.0-inplace" 'False) (C1 ('MetaCons "Alpha" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)) :+: (C1 ('MetaCons "AlMeta" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :+: C1 ('MetaCons "AlAny" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Slot)))) | |
Constructors
| BiTau Attribute Expression | |
| BiVoid Attribute | |
| BiDelta Bytes | |
| BiLambda Function | |
| BiMeta Text | |
| BiAny Slot |
Instances
Instances
| Generic Bytes Source # | |
| Show Bytes Source # | |
| Eq Bytes Source # | |
| Ord Bytes Source # | |
| Metas Bytes Source # | |
| Slots Bytes Source # | |
| FromJSON Bytes Source # | |
| ToCST Bytes BYTES Source # | |
| type Rep Bytes Source # | |
Defined in AST type Rep Bytes = D1 ('MetaData "Bytes" "AST" "phino-0.0.0-inplace" 'False) ((C1 ('MetaCons "BtEmpty" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "BtOne" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String))) :+: (C1 ('MetaCons "BtMany" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [String])) :+: (C1 ('MetaCons "BtMeta" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :+: C1 ('MetaCons "BtAny" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Slot))))) | |
Instances
Instances
hashExpression :: Expression -> Int Source #
hashShape :: Expression -> Int Source #
hashSkeleton :: Expression -> Int Source #
inert :: Expression -> Bool Source #
distinct :: Expression -> Bool Source #
alike :: Expression -> Expression -> Bool Source #
within :: Expression -> Expression -> Bool Source #
symbols :: Expression -> [Int] Source #
lifted :: Int -> Int -> Expression -> Expression Source #
countNodes :: Expression -> Int Source #
matchBaseObject :: Expression -> Maybe Text Source #
pattern BaseObject :: Text -> Expression Source #
matchDataObject :: Expression -> Maybe (Text, Bytes) Source #
pattern DataString :: Bytes -> Expression Source #
pattern DataNumber :: Bytes -> Expression Source #
pattern DataObject :: Text -> Bytes -> Expression Source #
dataBytes :: Bytes -> Expression Source #