The XPL0 Programming Language

Top  Previous  Next

0: INTRODUCTION

 

Syntax

 

1: FACTORS

 

 

2: EXPRESSIONS

 

 

 

3: STATEMENTS

 

Assignments
Begin - end
If - then - else
Case - of - other *
While - do
Repeat - until
Loop - quit
For - do
Exit
Subroutine Calls
Comments
Null Statements
Example Program: THERMO

 

4: SUBROUTINES

 

Procedures
Local and Global
Arguments
Nesting
Return
Functions
Intrinsics
Scope *
Recursion *
Forward Procedures *
Forward Functions *
Include *
External Procedures *
Assembly-Language Externals *
External .I2L Procedures *
Structs or Records.

 

5: ARRAYS *

 

Example Program: DICE
How arrays work *
Strings *
Multidimensional Arrays *
Complex Data Structures *
Constant Arrays *
Example Program: RECORDS *
Address Operator *
Returning Multiple Values *
Segment Arrays *

 

6: INPUT AND OUTPUT

 

Device 0

Device 1

Device 2.

Device 3

Device 4

Device 5

Device 6

Device 7

Device 8

Device 9

Device 10

 

 

APPENDIX

 

Intrinsics
Compile Errors .
Run-time Errors
Common Errors
Keyboard Scan Codes
Syntax Summary

 

* Advanced section