|
This program implements the runcurry
command that allows
to run a Curry program without explicitly invoking the REPL.
Basically, it has three modes of operation:
#!/usr/bin/env runcurry
).
If the script file contains the line #jit
, it is compiled
and saved as an executable so that it is faster executed
when called the next time.
Note that the runcurry
command is intended to compile simple
Curry programs which use only base libraries but not other
Curry packages.
Otherwise, one has to adapt the constant replOpts
below.
Author: Michael Hanus
Version: March 2024
replOpts
:: String
|
main
:: IO ()
|
usageMsg
:: String
|
checkFirstArg
:: [String] -> [String] -> IO ()
|
execOrJIT
:: String -> String -> String -> [String] -> [String] -> IO Int
|
isHashJITOption
:: String -> Bool
|
noHashLine
:: String -> Bool
|
getNewProgramName
:: IO String
|
isExecutable
:: String -> IO Bool
|
saveCurryProgram
:: String -> [String] -> String -> IO Int
|
execCurryProgram
:: String -> [String] -> [String] -> IO Int
|
execAndDeleteCurryProgram
:: String -> [String] -> [String] -> IO Int
|
stripSpaces
:: String -> String
|
|
|
|
|
|
|
|
|
|
|
|
|
|