Home Texas Server Home Page

TScript Compiler Commands

The TScript compiler has a source interface as well as a method interface. This means that compiler command can be written into the source text via the use of hash ('#') symbol followed by the special keyword and any relevant parameters.

The "#include <filename.ts>" command will include the TScript source into the TScript engine. This will process the source file and allow any static methods to be called.

The "#version <version string>" command will allow the TScript engine to embed the appropriate version number into any precompiled TScript source libraries. This will allow any installer program to identify the latest version of a TScript library. This compiler command has also proven useful to indicate the latest version of the source code.

Copyright © 2008, Ekky Software Pty Ltd.