CurryInfo: currypp-3.2.0 / CPP.ICode.Parser.FormatParser.parse

definition: Info
 
parse :: String -> LangParser
parse showfun p s = do
  x <- addVarsToSpecs p $ readExpression p s
  return (bindPM (liftPM genString x)
                 (\y -> cleanPM ((++) (showfun++" (") y)))
demand: Info
 no demanded arguments
deterministic: Info
 deterministic operation
documentation: Info
 
The function parses and converts a String that is in the format of a C-like
printf expression into a Curry Expression that makes use of the
`Data.Format` library.
@param showfun - The operation to be applied to the formatted string result
@param pos - The position of the expression in the original file
@param exp - The expression which should be converted
@return A String in Curry Syntax matching exp using the `Data.Format`
        library
failfree: Info
 <FAILING>
indeterministic: Info
 might be indeterministic
infix: Info
 no fixity defined
iotype: Info
 {(_,_,_) |-> _}
name: Info
 parse
precedence: Info
 no precedence defined
result-values: Info
 _
signature: Info
 String -> CPP.ICode.ParsePos.Pos -> String
-> Prelude.IO (CPP.ICode.ParseMonad.PM String)
solution-complete: Info
 operation might suspend on free variables
terminating: Info
 possibly non-terminating
totally-defined: Info
 possibly non-reducible on same data term