Copyright | (c) Christian Maeder DFKI GmbH 2010 |
---|---|
License | GPLv2 or higher, see LICENSE.txt |
Maintainer | Christian.Maeder@dfki.de |
Stability | provisional |
Portability | non-portable (via imports) |
Safe Haskell | None |
query strings
Synopsis
- ppList :: [String]
- displayTypes :: [String]
- comorphs :: [String]
- data NodeCmd
- nodeCmds :: [NodeCmd]
- showNodeCmd :: NodeCmd -> String
- nodeCommands :: [String]
- proveParams :: [String]
- edgeCommands :: [String]
- knownQueryKeys :: [String]
- data DGQuery
- = DGQuery {
- queryId :: Int
- optQueryLibPath :: Maybe String
- | NewDGQuery { }
- = DGQuery {
- data Query = Query {}
- type NodeIdOrName = Either Int String
- type QueryPair = (String, Maybe String)
- showQuery :: [QueryPair] -> String
- showPath :: [String] -> String
- showPathQuery :: [String] -> [QueryPair] -> String
- data QueryKind
- = DisplayQuery (Maybe String)
- | DGTranslation String
- | GlobCmdQuery String
- | GlProvers ProverMode (Maybe String)
- | GlTranslations
- | GlShowProverWindow ProverMode
- | GlAutoProveREST ProverMode ReasoningParameters
- | GlAutoProve ProveCmd
- | NodeQuery NodeIdOrName NodeCommand
- | EdgeQuery Int String
- data ProveCmd = ProveCmd {
- pcProverMode :: ProverMode
- pcInclTheorems :: Bool
- pcProver :: Maybe String
- pcTranslation :: Maybe String
- pcTimeout :: Maybe Int
- pcTheoremsOrNodes :: [String]
- pcXmlResult :: Bool
- pcAxioms :: [String]
- data NodeCommand
- = NcCmd NodeCmd
- | NcProvers ProverMode (Maybe String)
- | NcTranslations (Maybe String)
- | ProveNode ProveCmd
- anaUri :: [String] -> [QueryPair] -> [String] -> Either String Query
- isNat :: String -> Bool
- getSwitches :: [QueryPair] -> Either String ([QueryPair], [(String, Flag)])
- getArgFlags :: [QueryPair] -> IO (Either String ([QueryPair], [(String, String)], [Flag]))
- anaQuery :: [QueryPair] -> [String] -> Either String (Maybe Int, QueryKind)
- getIdOrName :: [QueryPair] -> [QueryPair] -> [QueryPair] -> NodeIdOrName
- escMap :: [(Char, Char)]
- escStr :: String -> String
- unEsc :: String -> String
- decodePlus :: Char -> Char
- decodeQuery :: String -> String
- getFragOfCode :: String -> String
- getFragment :: String -> String
- anaNodeQuery :: [String] -> NodeIdOrName -> [String] -> [String] -> [QueryPair] -> Either String QueryKind
Documentation
displayTypes :: [String] Source #
showNodeCmd :: NodeCmd -> String Source #
nodeCommands :: [String] Source #
proveParams :: [String] Source #
edgeCommands :: [String] Source #
knownQueryKeys :: [String] Source #
DGQuery | |
| |
NewDGQuery | |
type NodeIdOrName = Either Int String Source #
showPathQuery :: [String] -> [QueryPair] -> String Source #
DisplayQuery (Maybe String) | |
DGTranslation String | |
GlobCmdQuery String | |
GlProvers ProverMode (Maybe String) | |
GlTranslations | |
GlShowProverWindow ProverMode | |
GlAutoProveREST ProverMode ReasoningParameters | |
GlAutoProve ProveCmd | |
NodeQuery NodeIdOrName NodeCommand | |
EdgeQuery Int String |
ProveCmd | |
|
data NodeCommand Source #
NcCmd NodeCmd | |
NcProvers ProverMode (Maybe String) | |
NcTranslations (Maybe String) | |
ProveNode ProveCmd |
Instances
Eq NodeCommand Source # | |
Defined in PGIP.Query (==) :: NodeCommand -> NodeCommand -> Bool (/=) :: NodeCommand -> NodeCommand -> Bool | |
Show NodeCommand Source # | |
Defined in PGIP.Query showsPrec :: Int -> NodeCommand -> ShowS show :: NodeCommand -> String showList :: [NodeCommand] -> ShowS |
anaUri :: [String] -> [QueryPair] -> [String] -> Either String Query Source #
the path is not empty and leading slashes are removed
anaQuery :: [QueryPair] -> [String] -> Either String (Maybe Int, QueryKind) Source #
a leading question mark is removed, possibly a session id is returned
getIdOrName :: [QueryPair] -> [QueryPair] -> [QueryPair] -> NodeIdOrName Source #
decodePlus :: Char -> Char Source #
decodeQuery :: String -> String Source #
getFragOfCode :: String -> String Source #
getFragment :: String -> String Source #
anaNodeQuery :: [String] -> NodeIdOrName -> [String] -> [String] -> [QueryPair] -> Either String QueryKind Source #