xJASS

Author

Message

The_Chosen_OreoCorporal

Subject: xJASS Wed Aug 03, 2011 1:17 am

JassHelper is really, really pissing me off. It keeps messing with the code of my maps, so I have decided to create my own version of JASS, called xJASS. The syntax is defined in the spoiler below (Unfinished, does need additions):

Spoiler:

Code:

// Example xJass File

// This is a comment

/*This is a multi-line comment*/

/* This is an enclosed comment */

// Types int j; // A single integerinteger j2; // Same as intchar c; // A single ASCII characterstring s; // A String of text or an array of charactersfloat fl; // Converts to a Realreal r; // Same as realcode c; // A code block, such as a Function or Methodbool b; // Boolean Value, either 0 or 1, true or false, etc..boolean b2; // Same as boolhandle h; // Can be converted to ANY type // Other types can be created off these, such as the ones // located in the file "common.j". I will not list them here.

// Types of Typeslocal // Is privateglobal // Is publicsemiglobal // Is public ONLY to the current triggerarray // An array of values

// Calling Methods / Functions / Executions / RetFunctions // Simply enter the name of the block you wish to execute as follows

call m (23); // This calls the method m that was created above.

// Ending A Statement // Statements are ended with ;local int i;

// Structs and Enumerations

// Structglobal struct sct1{ int var1; // Variables inside a Struct string var2 = "hello"; // This one is defined a default value bool var3 = false; // This one is also defined a default value} obj1; // Structs can have objects created directly from them by putting them // at the end of the struct. They are not necessary however.