Category:XPL0: Difference between revisions
no edit summary
No edit summary |
No edit summary |
||
Line 9:
XPL0 has been implemented on more than a dozen processors, but it's
currently maintained
compilers (interpreted, assembly-code compiled, and optimizing) are
available from the official website: xpl0.org [http://www.xpl0.org/]. The 32-bit version of the DOS compiler, XPLPX, was used for
Here's how the traditional Hello World program is coded:
Line 27:
All names must be declared before they can be used. The command word
''code'' associates the name Text to the built-in routine number 12, which
outputs strings. There are
provide capabilities such as input and output, graphics, and trig
functions.
The Raspberry Pi versions of the compilers (as well as the Windows' version, EXPL-32) automatically declare ''code'' declarations. Thus the above program can simply be written as:
<pre>
Text(0, "Hello World!")
</pre>
|