epic-0.1.5: Compiler for a supercombinator language

Portabilityportable
Stabilityexperimental
Maintainereb@dcs.st-and.ac.uk

Epic.Compiler

Description

Public interface for Epigram Supercombinator Compiler

Synopsis

Documentation

data CompileOptions Source

(Debugging) options to give to compiler

Constructors

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

Instances

compileSource

Arguments

:: 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

compileOptsSource

Arguments

:: FilePath

Input file name

-> FilePath

Output file name

-> Maybe FilePath

Interface (.ei) file name, if desired

-> [CompileOptions] 
-> IO () 

linkSource

Arguments

:: [FilePath]

Object files

-> [FilePath]

Extra include files for main program

-> FilePath

Executable filename

-> Bool

Generate a main (False if externally defined)

-> [CompileOptions] 
-> IO () 

Link a collection of .o files into an executable