Portability | portable |
---|---|
Stability | experimental |
Maintainer | eb@dcs.st-and.ac.uk |
Public interface for Epigram Supercombinator Compiler
- data CompileOptions
- = KeepC
- | Trace
- | ShowBytecode
- | ShowParseTree
- | MakeHeader FilePath
- | GCCOpt String
- | Debug
- compile :: FilePath -> FilePath -> Maybe FilePath -> IO ()
- compileOpts :: FilePath -> FilePath -> Maybe FilePath -> [CompileOptions] -> IO ()
- link :: [FilePath] -> [FilePath] -> FilePath -> Bool -> [CompileOptions] -> IO ()
Documentation
data CompileOptions Source
(Debugging) options to give to compiler
KeepC | Keep intermediate C file |
Trace | Generate trace at run-time (debug) |
ShowBytecode | Show generated code |
ShowParseTree | Show parse tree |
MakeHeader FilePath | Output a .h file too |
GCCOpt String | Extra GCC option |
Debug | Generate debug info |
:: FilePath | Input file name |
-> FilePath | Output file name |
-> Maybe FilePath | Interface (.ei) file name, if desired |
-> IO () |
Compile a source file in supercombinator language to a .o