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

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!cis.ohio-state.edu!peach.cis.ohio-state.edu!weiler
  3. From: weiler@peach.cis.ohio-state.edu (Jerry Weiler)
  4. Subject: Re: yacc and lex
  5. In-Reply-To: hooft@fys.ruu.nl's message of Wed, 22 Jul 1992 08: 02:07 GMT
  6. Message-ID: <WEILER.92Jul22135943@peach.cis.ohio-state.edu>
  7. Originator: weiler@peach.cis.ohio-state.edu
  8. Sender: news@cis.ohio-state.edu (NETnews        )
  9. Organization: NAIVE - New And Improved Virtual Environment
  10. References: <1992Jul21.164738.1@mcclb0.med.nyu.edu>
  11.     <WEILER.92Jul21213719@crabapple.cis.ohio-state.edu>
  12.     <1992Jul22.080207.21315@fys.ruu.nl>
  13. Date: Wed, 22 Jul 1992 18:59:43 GMT
  14. Lines: 17
  15.  
  16. In article <1992Jul22.080207.21315@fys.ruu.nl> hooft@fys.ruu.nl (Rob Hooft) writes:
  17.    Well written? The wool.lex code from the GWM window manager can be `flex'ed,
  18.    but the resulting C code is incorrect. The GWM program redefines some of the
  19.    macros which are in lex, but which are implemented differently in flex. I've
  20.    run into this kind of problems with flex repeatedly.
  21.  
  22.    Bison is another story. Never had any problems using `bison -y' instead of 
  23.    yacc. I have atually installed a script called yacc, which calls `bison -y'.
  24.  
  25. OK. I retract my statement about lex and flex being compatable. I've
  26. never used lex much. I've usually written my own lexical analyzer for
  27. my projects (they're usually very simple and just don't need
  28. lex/flex). What I've really used is bison and all the yacc code I've
  29. seen runs perfectly well with bison; I assumed flex would have been
  30. the same way. I guess not.
  31.  
  32. - Jerry
  33.