compile/1/3

compiles a file

compile(+Filename)
compile(+ErrorStream.+Filename, +Options)

compile/1/3 compiles a given file

compile runs the compiler for *.min or *.mss depending on the extension of Filename.

Options is a list of options as used for minervac, e.g.

	['-sp',MySearchPath,'-encoding',MyEncoding]

compile/1/3 starts a new Minerva in the same process and uses the parameters -encoding, -sp, -c from the options list or the system parameters of the current MINERVA, where ('-c', Path/*.mca) will be replaced with ('-c', Path/minervac.mca) .

Arguments

ErrorStream            error output stream
Filename               atom
Options                list of minervac options

Examples

A typical program looks like

	:
	compile(File),
	load(File),
	:

Standard

These predicates are not part of the ISO-Prolog Standard.

See also

minervac,


Up read on...