Professional Documents
Culture Documents
You may use this file in any way you desire. There are no warranties, etc,
etc.
In fact, don't even bother keeping my name on this. It'll help free me from
blame.
When the Orthagonal interpreter is invoked, the grid is read from standard
input, the PC is loaded with (0,0),(1,0) and the stack is initialized to be
empty. The bottom row of the grid, (0,255)(1,0) is loaded with up to 256
characters from argv[1].
All quantities are 32 bit signed. (Well, actually, they're the size of your
compiler's int until you change the definition of s32)
where x and y are integers in the valid range, and element is one of:
1) An integer quantity
-1
0
36
etc.
2) A character, enclosed in single quotes
'a'
'z'
'0'
etc.
3) An operator
ccw
+
-
etc.
If a line can't be figured out by the parser, parsing stops and the number
of the line is printed. Informative error messages are out of the scope of
the interpreter.
To run a program:
orth [arg] < program.or
gorth [arg] < program.or
gorth is like orth, except it prints debuggering info about the input file and
subsequent execution.
Jeff Epler
the reluctant creator of orthagonal