Gentee Programming Language > Documentation > Syntax Download documentation

The include command

Using the include command the specified files are compiled into the object code that is appended to the complete file. If a file has already been compiled and contains the object file, which has a .ge filename extension, this file is linked without recompiling.

<file name> ::= '"' {<str character>} '"'
<include> ::= include '{'<file name> {<end-of-line><file name>} '}'

Filenames are located in a block (i.e enclosed within curly braces); furthermore, each filename enclosed in double quotes is located in a new line. Actually, a filename contains an absolute or relative path.

include {
"myfile1.g"
$"c:\path\myfile2.g"
}

You can use an environment variable GINCLUDE to specify searching file folders for include command. Let you have c:\My Gentee Lib\mylib.g and c:\Programs Files\Gentee\Lib\registry.ge files. Define a environment variable with Start-Settings-Control Panel-System.

GINCLUDE=c:\My Gentee Lib;c:\Programs Files\Gentee\Lib

In this case, you can use files from those directories without the full path.

include {
"mylib.g"
"registry.ge"
}


 Copyright © 2004-2006 Gentee Inc. All rights reserved.