definition:
|
applyLangParser :: Either String ParserInfo
-> StandardToken
-> IO (PM StandardToken)
applyLangParser model (StTk p pexp l c) =
do parsedStringNoIO <- (parsers l model) pexp c
return (bindPM parsedStringNoIO (\s -> cleanPM (StTk p pexp l s)))
|
demand:
|
argument 2
|
deterministic:
|
deterministic operation
|
documentation:
|
--- Select the right translator and apply it to a single StandardToken
--- @param model - data model information in case of SQL code,
--- error message otherwise
--- @param t - The input StandardToken
--- result - The translated StandardToken wrapped in IO and ParserMonad
|
failfree:
|
<FAILING>
|
indeterministic:
|
might be indeterministic
|
infix:
|
no fixity defined
|
iotype:
|
{(_,{StTk}) |-> _}
|
name:
|
applyLangParser
|
precedence:
|
no precedence defined
|
result-values:
|
_
|
signature:
|
Prelude.Either String CPP.ICode.Parser.SQL.ParserInfoType.ParserInfo
-> CPP.ICode.ParseTypes.StandardToken
-> Prelude.IO (CPP.ICode.ParseMonad.PM CPP.ICode.ParseTypes.StandardToken)
|
solution-complete:
|
operation might suspend on free variables
|
terminating:
|
possibly non-terminating
|
totally-defined:
|
possibly non-reducible on same data term
|