aboutsummaryrefslogtreecommitdiff
path: root/main/coclmain.dcl
blob: 6366623c02e327b3f9fd668f2a88666db666d700 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
definition module coclmain

/*
	The coclmain library

	includes
		compile
		backend (needs dynamic library backend.dll)
		ArgEnv
		Version
		set_return_code

	uses
		StdEnv
		compiler

	This library is compiled with profiling code. This means that profiling
	should also be enabled in projects that use the coclmain library.

	Note:	The interface from coclmain to the compiler is not version checked.
			It's safest to build and use a new coclmain library whenever the
			type of the compiler's syntax tree changes.
*/

// coclMain :: ![{#Char}] !*World -> *World
// testArgs world
coclMain :== coclMainWithVersionCheck CoclMainVersionCurrent CoclMainVersionLatestDef CoclMainVersionLatestImp

CoclMainVersionCurrent
	:==	0x02000205
CoclMainVersionLatestDef
	:==	0x02000205
CoclMainVersionLatestImp
	:==	0x02000205

coclMainWithVersionCheck :: !Int !Int !Int ![{#Char}] !*World -> *World
// currentVersion latestDefVersion latestImpVersion testArgs world