[comp.compilers] Lex & Yacc for Pascal

cyamamot@nunki.usc.edu (Cliff Yamamoto) (09/21/88)

Greetings!
	Does anyone know of the existance and/or source of Lex and Yacc for
use with Pascal, preferably capable of running on an IBM PC host?  Any leads
for a public domain or commercial version of this software would be 
appreciated.  Thanks in advance.

Cliff Yamamoto
[The closest thing to PD yacc I've seen is Gnu's bison.  There's a reasonably
good reimplementation of lex called flex that came across the net recently.
Of course, they all generate C.  Early versions of yacc had an option to
generate ratfor parsers, but that hasn't worked for a while.  Bison and flex
have both been more or less been made to work on PCs, and I suppose that with
moderate effort one could change them to generate pascal output rather than
C.  The syntax isn't all that different though turning C unions into Pascal
variant record types could be exciting.
Any other leads would be welcome, the question of non-unix versions of
yacc and lex come up all the time.  For anybody who hasn't heard, the yacc
that Decus used to have proved to be a pirate version of unix yacc.  -John]
[From cyamamot@nunki.usc.edu (Cliff Yamamoto)]
--
Send compilers articles to ima!compilers or, in a pinch, to Levine@YALE.EDU
Plausible paths are { decvax | harvard | yale | bbn}!ima
Please send responses to the originator of the message -- I cannot forward
mail accidentally sent back to compilers.  Meta-mail to ima!compilers-request

peterd@june.cs.washington.edu (Peter C. Damron) (09/23/88)

In article <2676@ima.ima.isc.com>, cyamamot@nunki.usc.edu (Cliff Yamamoto) writes:
> 	Does anyone know of the existance and/or source of Lex and Yacc for
> use with Pascal, ...

It has been a while since I last used it,
but for my undergraduate compiler class at UC Santa Cruz,
we used a system called TWS (translator writing system?).

TWS included both a scanner and parser generator which I think generated
Pascal (At least we used Pascal for our compiler semantic routines).
The system ran Berkeley Unix, so it is possible that TWS generated
other than Pascal.  We had shell scripts which took care of all
the appropriate compiling and linking to build the scanner and parser.

I believe that TWS was written by DeRemer and Pennello (from UCSC).
It may be available from Metaware, which I think is their company
for compiler products.

Hope this helps,
Peter Damron.
peterd@cs.washington.edu
--
Send compilers articles to ima!compilers or, in a pinch, to Levine@YALE.EDU
Plausible paths are { decvax | harvard | yale | bbn}!ima
Please send responses to the originator of the message -- I cannot forward
mail accidentally sent back to compilers.  Meta-mail to ima!compilers-request

payne@yale.edu (Chris Payne) (09/23/88)

In article <2676@ima.ima.isc.com>, cyamamot@nunki (Cliff Yamamoto) writes:
|	Does anyone know of the existance and/or source of Lex and Yacc for
|use with Pascal ...

  A group at William & Mary has developed a compiler-generation system
in and for Pascal called MYSTRO.  The last version I'm familiar with
handled NQLALR(1) grammars.  The best contact is probably Bob Noonan
(try $RENOON@WMMVS.BITNET).  MYSTRO source was available for media &
preparation costs.
-- 
Chris Payne                payne@ [ yale.arpa | cs.yale.edu | yalecs.bitnet ]
--
Send compilers articles to ima!compilers or, in a pinch, to Levine@YALE.EDU
Plausible paths are { decvax | harvard | yale | bbn}!ima
Please send responses to the originator of the message -- I cannot forward
mail accidentally sent back to compilers.  Meta-mail to ima!compilers-request

arnold@ncar.UCAR.EDU (Arnold D. Robbins {EUCC}) (09/24/88)

The book "Crafting a Compiler" by Fischer and LeBlanc describes tools called
LEXGEN, LLGEN, and LALRGEN (guess what they do) which are available from the
publisher. These are all written in Pascal and produce tables which can be
used with drivers in Pascal or any other language. The book has more details.
-- 
Arnold Robbins -- Emory University Computing Center
DOMAIN:	arnold@unix.cc.emory.edu (finally!)
UUCP:	{ decvax, gatech, skeeve }!emory!arnold		BITNET:	arnold@emoryu1
PHONE:	+1 404 727-7636
--
Send compilers articles to ima!compilers or, in a pinch, to Levine@YALE.EDU
Plausible paths are { decvax | harvard | yale | bbn}!ima
Please send responses to the originator of the message -- I cannot forward
mail accidentally sent back to compilers.  Meta-mail to ima!compilers-request