[comp.lang.smalltalk] using lex/yacc with smalltalk ?

elkassas@eba.eb.ele.tue.nl (sherif el kassas) (03/02/91)

Hi all,
I am starting a project where i'll be using lex/yacc to
write a number of small translators. I would like
to be able to incorporate these translators into a
smalltalk system. Does anyone have any experience with
such a task ? ie integrating the c code generated by
lex/yacc with a smalltalk system ?
Thanks,
Sherif
--
Sherif El-Kassas, elkassas@eb.ele.tue.nl
Digital Systems Group, EH 11.29
Eindhoven University of Technology,
5600 MB Eindhoven, The Netherlands.

Sherif El-Kassas, elkassas@eb.ele.tue.nl         .       :.
Digital Systems Group, EH 11.29            \_____o__/ __________
Eindhoven University of Technology,               .. /
5600 MB Eindhoven, The Netherlands.                 /

pkr@media01.UUCP (Peter Kriens) (03/05/91)

> I am starting a project where i'll be using lex/yacc to
> write a number of small translators. I would like
> to be able to incorporate these translators into a
> smalltalk system. Does anyone have any experience with
> such a task ? ie integrating the c code generated by
> lex/yacc with a smalltalk system ?

Could you specify which Smalltalk you are going to use. Using Digitalk V286,
it is not a very hard problem. You can use almost any C compiler and some 
assembly glue to connect Smalltalk and your C subsystem. For Smalltalk 80, it
is a bit harder. You need the phar lap dos extender tools and a Watcom
or NDP compiler, I think. For Smalltalk V on the mac it is very easy, you just
make an XCMD. If you specify you environment, I could give you some more
pointers.

Peter Kriens
pkr@media01

new@ee.udel.edu (Darren New) (03/06/91)

In article <1100@eba.eb.ele.tue.nl> elkassas@eba.eb.ele.tue.nl (sherif el kassas) writes:
>I am starting a project where i'll be using lex/yacc to
>write a number of small translators. I would like
>to be able to incorporate these translators into a
>smalltalk system. 

I just got an advert from ParcPlace announcing a bunch of new products,
one of which appeared to be some sort of yacc-like parser
well-integrated into Smalltalk in a Smalltalk-ish way.  (I don't have
the advert here and I didn't really read it closely yet, so details are
sketchy.)  Unless you already have a bunch of translators written in
yacc syntax, you might want to contact ParcPlace to get information
(info@parcplace.com).

Also, there is always the user-defined primitives, altho I don't
know how well that would work for yacc and lex.    -- Darren
-- 
--- Darren New --- Grad Student --- CIS --- Univ. of Delaware ---
----- Network Protocols, Graphics, Programming Languages, 
      Formal Description Techniques (esp. Estelle), Coffee, Amigas -----
              =+=+=+ Let GROPE be an N-tuple where ... +=+=+=

papa@pollux.usc.edu (Marco Papa) (03/06/91)

Does anybody know of a regular expression package for Smalltalk/V with
functionality and syntax similar to UNIX's regex?

-- Marco

-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
"Xerox sues somebody for copying?" -- David Letterman
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

MUHRTH@tubvm.cs.tu-berlin.de (Thomas Muhr) (03/12/91)

There is an extended discussion going on at CompuServes Digitalk forum
concerning lex/yacc and regex.
- Thomas