home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / linux / 6384 < prev    next >
Encoding:
Text File  |  1992-07-21  |  1.6 KB  |  34 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!mcsun!sun4nl!alchemy!ruunfs!hooft
  3. From: hooft@fys.ruu.nl (Rob Hooft)
  4. Subject: Re: yacc and lex
  5. Message-ID: <1992Jul22.080207.21315@fys.ruu.nl>
  6. Organization: Physics Department, University of Utrecht,  The Netherlands
  7. References: <1992Jul21.164738.1@mcclb0.med.nyu.edu> <WEILER.92Jul21213719@crabapple.cis.ohio-state.edu>
  8. Date: Wed, 22 Jul 1992 08:02:07 GMT
  9. Lines: 23
  10.  
  11. In <WEILER.92Jul21213719@crabapple.cis.ohio-state.edu> weiler@crabapple.cis.ohio-state.edu (Jerry Weiler) writes:
  12.  
  13. >In article <1992Jul21.164738.1@mcclb0.med.nyu.edu> ramirez@mcclb0.med.nyu.edu writes:
  14.  
  15. >> I would like to know if anybody has ported yacc and lex
  16. >> over to linux. If yes, please let me know where I can find it.
  17.  
  18. >You should use bison and flex. bison is the GNU replacement for yacc
  19. >and flex is the GNU replacement for lex. They're faster, more flexible
  20. >and all around better. Bison and flex should be able to handle any
  21. >grammer yacc and lex do (any well written one, that is)
  22.  
  23. Well written? The wool.lex code from the GWM window manager can be `flex'ed,
  24. but the resulting C code is incorrect. The GWM program redefines some of the
  25. macros which are in lex, but which are implemented differently in flex. I've
  26. run into this kind of problems with flex repeatedly.
  27.  
  28. Bison is another story. Never had any problems using `bison -y' instead of 
  29. yacc. I have atually installed a script called yacc, which calls `bison -y'.
  30. -- 
  31. Rob Hooft, Bijvoet Center for Biomolecular Research, 
  32. Chemistry department University of Utrecht, the Netherlands
  33. hooft@hutruu54.bitnet hooft@chem.ruu.nl hooft@fys.ruu.nl hooft@cc.ruu.nl
  34.