definition: |
getAST :: String -> Config -> IO (Module ()) getAST fileName config = if (anyAST config) then do restrict config 2 $ "INFO: Getting SpanAST of " ++ fileName ast <- readFullAST fileName const (return ast) $!! ast else return $ Module (SpanInfo (Span (Position 1 1) (Position 1 1)) []) WhitespaceLayout [] (ModuleIdent NoSpanInfo ["NoAST"]) Nothing [] [] |
demand: |
no demanded arguments |
deterministic: |
deterministic operation |
documentation: |
-- Gets filename and config, -- if any check on AST is on (config), then get the Ast of the programm -- if the curry file has a suffix .curry, remove it to find corresponding -- AST. -- If no check needed, returns an empty module to avoid reading time of SpanAST. |
indeterministic: |
referentially transparent operation |
infix: |
no fixity defined |
iotype: |
{(_,_) |-> _} |
name: |
getAST |
precedence: |
no precedence defined |
result-values: |
_ |
signature: |
String -> Types.Config -> Prelude.IO (Curry.Types.Module ()) |
solution-complete: |
operation might suspend on free variables |
terminating: |
possibly non-terminating |
totally-defined: |
possibly non-reducible on same data term |