As a real, practical example, we will now write a simple, interpreted programming language called
XPL (eXample Programming Language) using JS/CC. XPL is a C-styled script language interpreter,
providing simple user input/output operations, loops, and conditional execution as well as variables.
As variable type, only numbers are supported (integer and floating point both use the same, internal
JavaScript type "Number"). The definition of user-defined functions is not possible in this
scripting language, but it would be simple to add this feature.
For text output, XPL provides a special "say" command which allows to output constant texts.
To get familiar with XPL's syntax, look at the following example scripts.