Purpose | The xpp statement is used to define a Superx++ program. xpp statements can be nested in which case the outermost one represents the Superx++ program. The internal ones are merely processed as no-ops (no operations). | |
Format |
xpp { {Superx++ statements} }
|
|
{Superx++ statements} | the statements of the program | |
The Program Object: xpp | ||
An Superx++ program is itself a Superx++ object. The object can be referenced and even modified using the same means which are used for manipulating other objects. xout(xpp); will write the entire Superx++ program to the output stream
_object("xpp/class(0)") will return the <class> statement that occurs as the first statement within the Superx++ program
xpp.save(string = "C:\\MyDir\\MyFile.xml"); will save the Superx++ program to the file C:\MyDir\MyFile.xml |
||
Example #1 |
xpp { xout("Hello World!"); }; Defines a program which sends the text Hello World to the output stream. |