
pl0:

This is a compiler-interpreter of the PL/0 language in the following book.
  Wirth, N.: Algorithms+Data Structures=Programs, Prentice-Hall, 1976.
  (See Note 1 for Japanese translation)

Since the original PL/0 language has no read and write statements, 
the following statements are added as extension:
  read(<var>), write(<expression>), writeln(<expression>), writeln

The files 'ex*.pl0' are sample PL/0 source programs.
They can be tested, for example by 
  % pl0 exmwwl.pl0
or
  % pl0 exmwwl.pl0 > temp.res
The result 'temp.res' will be the same as the file 'exmwwl.res'.


files:

Readme          this file
Readme.history  history of revision (in Japanese)
pl0.l           description of lexical analyzer of pl0
pl0.rie         description of syntax and semantic analyzer,
                and intermediate code generator of pl0
pl0             executable of PL/0 interpreter-compiler to be made
lex.c           subordinate C functions for lexical analyzer
inter.c         PL/0 interpreter written in C
*.[ch]          subordinate functions or header files in the C language
Makefile        makefile for making pl0
Makefile.x68    makefile for making pl0.x (for X68k only)
ex*.pl0         sample PL/0 source programs
exerr*.pl0      sample PL/0 programs with errors
exmwwl.res      an example output when doing the command
                mentioned above

(Note 1 for Japanese translation:)
$B!JK.Lu!'JR;3BnLi!$%"%k%4%j%:%`!\%G!<%?9=B$!a%W%m%0%i%`!$(B
$B!!F|K\%3%s%T%e!<%?6(2q!K(B

references in Japanese:

  $B$3$N(BPL/0$B=hM}7O$K4X$9$k2r@b$,!"0J2<$N;(;o$*$h$SC19TK\$K5-:\(B
$B$5$l$F$$$^$9!#(B

$B:4!9@/9'!'(B
$BB0@-J8K!$K$h$k%3%s%Q%$%i$N5-=RNc!$(B
$B>pJs=hM}!$(BVol. 35, No. 4, pp. 358-369 (1994).

$B:4!9@/9'!'%W%m%0%i%_%s%08@8l=hM}7O!$4dGH=qE9!%IUO?#B!%!!(B
