Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!ukc!slxsys!ibmpcug!robobar!steve From: steve@robobar.co.uk (Steve Bleazard) Newsgroups: comp.lang.modula2 Subject: Re: Lex and Yacc for Modula-2 Keywords: Lex, Yacc, compilers Message-ID: <1990Feb20.113917.8880@robobar.co.uk> Date: 20 Feb 90 11:39:17 GMT References: <4314@daffy.cs.wisc.edu> Reply-To: steve@robobar.CO.UK (Steve Bleazard) Organization: Robobar Ltd., Perivale, Middx., ENGLAND. Lines: 19 In article <4314@daffy.cs.wisc.edu> zerr@math.wisc.edu (Troy Zerr) writes: > Has anyone heard of a version of lex, yacc or similar compiler-building > tools? I'm writing a compiler in Modula-2 and I'd rather keep the > whole thing in Modula-2 rather than linking in a bunch of C code. > The Book 'A Compiler Generator For Microcomputers' by P Rechenberg and H Mossenbock (Prentice Hall 1989, ISBN 0-13-155136) presents Coco an LL(1) parser generator. The book includes a complete listing of the Coco source code. A machine readable version may be available for the IBM-PC from the publishers. I believe that Lee McLoughlin has modified standard YACC to produce Modula-2, contact him directly for more details. -- Steve.Bleazard@RoboBar.Co.Uk | Phone: +44 1 991 1142 x153 Snr Software Engineer, Robobar Ltd. | Fax: +44 1 998 8343 (G3) 22 Wadsworth Road, Perivale. | Middx., UB6 7JD ENGLAND. |