Category:XPL0: Difference between revisions
Content added Content deleted
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{stub}}{{language}} |
{{stub}}{{language}} |
||
'''XPL0''' is essentially a cross between Pascal and C. It was originally created in 1976 |
'''XPL0''' is essentially a cross between Pascal and C. It looks somewhat like Pascal but works more like C. It was originally created in 1976 |
||
by Peter J. R. Boyle, who designed it to run on a 6502 microprocessor as |
by Peter J. R. Boyle, who designed it to run on a 6502 microprocessor as |
||
an alternative to BASIC, which was the dominant language for personal |
an alternative to BASIC, which was the dominant language for personal |
||
computers at the time. XPL0 is based on PL/0, an example compiler in the |
computers at the time. XPL0 is based on PL/0, an example compiler in the |
||
book ''Algorithms + Data Structures = Programs'' by Niklaus Wirth. The first |
book ''Algorithms + Data Structures = Programs'' by Niklaus Wirth. The first |
||
XPL0 compiler was written in ALGOL |
XPL0 compiler was written in ALGOL, which was then used to create a compiler |
||
written in XPL0's syntax. |
written in XPL0's syntax. |
||
XPL0 has been implemented on more than a dozen processors, but |
XPL0 has been implemented on more than a dozen processors, but it's |
||
currently maintained for IBM-type PCs. Free, open-source versions of the |
currently maintained for IBM-type PCs. Programs run under DOS and under versions of Windows that can still run DOS apps. Free, open-source versions of the |
||
compilers (interpreted, assembly-code compiled, and optimizing) are |
compilers (interpreted, assembly-code compiled, and optimizing) are |
||
available from the official website: xpl0.org [http://www.xpl0.org/] |
available from the official website: xpl0.org [http://www.xpl0.org/]. The 32-bit version of the compiler, XPLPX, was used for these Rosetta Code tasks. |
||
Here |
Here's how the traditional Hello World program is coded: |
||
<pre> |
<pre> |