[net.unix-wizards] Parser generator in Pascal

kendall@wjh12.UUCP (Sam Kendall) (05/12/84)

It should be fairly easy to translate the Yacc parser (/usr/lib/yaccpar)
into Pascal, and to make a filter to translate the tables it generates
(y.tab.c) into Pascal as well.  Yacc itself can be left in C, of course.
I once translated yaccpar into Franz Lisp, but never got as far as
debugging it.

	Sam Kendall	{allegra,ihnp4,ima,amd70}!wjh12!kendall
	Delft Consulting Corp.	    decvax!genrad!wjh12!kendall

lmcl@ukc.UUCP (L.M.McLoughlin) (05/20/84)

About 4 years ago I extend the old V6 yacc to cope with pascal as well as
C and Ratfor.  A year later I added the pascal extensions onto the V7 yacc.
It's been used both at my own college (Westfield College, London) and by one
of the groups at Imperial College. It allows the user to specify where the
following code should go in an action (global variables, types, procedures...)
all of which get copied into there individual files.  Then at the end these
files plus the basic parser file are all concatenated together to form a
complete program.  Most of the trouble with the pascal version comes with 
the large tables that are needed.  For small grammars you can ask for the
tables to be initialised by assignments, larger programs require the tables to
be read in.  The generated table file is normally text but if your system
allows binary files then yacc can arrange to convert the text file into binary
by "system()"ing another program.
 If anyone is interested in getting a copy please mail me.
	Lee McLoughlin.