Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!bb3.andrew.cmu.edu!newsfeed.pitt.edu!scramble.lm.com!news.math.psu.edu!psuvax1!news.cc.swarthmore.edu!netnews.upenn.edu!dsinc!spool.mu.edu!sol.ctr.columbia.edu!news.msfc.nasa.gov!newsfeed.internetmci.com!in2.uu.net!EU.net!Germany.EU.net!zib-berlin.de!unlisys!news.DBresearch-berlin.de!news
From: sneider@DBresearch-berlin.de (Reinhold Schneider)
Subject: Re: Q: Lex&YACC smalltalk version ?
Message-ID: <31M0BLBG@DBresearch-berlin.de>
Sender: news@DBresearch-berlin.de
Nntp-Posting-Host: lotus
Reply-To: sneider@DBresearch-berlin.de
Organization: Daimler-Benz AG, Forschung Systemtechnik
References: <4ipc21$aah$1@mhafn.production.compuserve.com>
Date: Thu, 21 Mar 1996 14:25:48 GMT
Lines: 23

In article <4ipc21$aah$1@mhafn.production.compuserve.com>, ASSEMAT <100750.1105@CompuServe.COM> writes:
>I would like to know if there exists a version of the famous unix 
>utilities Lex & YACC for smalltalk.
>
>THANK YOU
>C.ASSEMAT
>INGENIA SA FRANCE

There is no original LEX/YACC port to Smalltalk as much as I know, but if
you use VisualWorks, you may add the AdvancedTools-Package which includes
a very nice Compiler-Generator. Its syntax is very YACC-like. There is a 
BNF-like notation with semantic actions included as blocks. You have the 
possibility to push any Smalltalk-Objects onto the parser stack and 
manipulate them using their own protocol. For me as a former BISON-fan
this is my favorite tool to access arbitrary languages. It took me 
2-3 hours to run my first example. 

Have fun,

Reinhold



