!! NOTE: namespace, struct, and type names can only contain letters, numbers, and underscores and cannot begin with a number. !!



Namespace declariations scope all struct definitions with in a given definition file. Only a single namespace can be defined per definition file; more than one definition file can share a single namespace.

NOTE: A definition file without a namespace declaration will assume the empty namespace.


Struct declcarations are in the format of the "struct" keyword followed by the name of the struct, followed by the definition of the struct bookended in a pair of braces "{ }".


struct <struct name>

Structs should contain a number of members, each suffixed with a ordinal. The ordinal is the unqiue identifier for the member within this struct definition.
Generally ordinals begin with 1, but can be any integer 1 to 255. This limits the number of members a struct can contain to 255.

NOTE: A struct without any member types will be ignored by the compiler.


Enum delcarations are in the format of the "enum" keyword followed by the name of the enumeration and a bracketed list of the enumeration's values. Enumeration values are comma seperated and must be assigned literal values as needed.
Enumerations use a 32 bit signed storage type which allows for literal values ranging from -2,147,483,648 to 2,147,483,647.


enum <enumeration name>
<value name> = <literal value>,


Type declarations are in the format of the "type" or "list" keyword followed by either a native type or the name of a customed defined struct, followed by the the name of the member.
Each member must be suffixed with an unique ordinal. Each member definition
must be terminated with a semi-colon.


<type or list keyword> <native, struct, or enum name> <member name> = <ordinal>;

Last edited Feb 20, 2013 at 6:33 AM by focuspark, version 1


No comments yet.