IF Computer > MINERVA > Manual > Reference > Predicates > Compilation > compile/1/3

compile/1/3

MINERVA
ifcomputer logo
f
Expert Services on the Web

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,

document: http://www.ifcomputer.co.jp/MINERVA/Manual/Reference/Predicates/Compilation/compile/print_en.html
published 2008/7/21 update 2004/1/12 (c) 1996-2006 IF Computer Japan
IF Computer 5-28-2 Sendagi, Bunkyo-ku Tel +81-3-5814-3352 info@ifcomputer.com
Customer Support Tokyo 113-0022 Japan   http://www.ifcomputer.com
Back> managed with ubiCMS