From: fox@graphics.cs.nyu.edu (David Fox) Subject: Re: flex vs. lex Date: Wed, 14 Apr 1993 23:07:48 GMT
In article <1qhm2eINN9nc@lynx.unm.edu> firehawk@centauri.unm.edu (-* FireHawk *-) writes:
In article <1993Apr14.141943.9799@aixrs0.hrz.uni-essen.de> hank@Blimp.automat.uni-essen.de writes:
:
:I didn't find any direct info on this question, so I "dare" posting
:it: quite often when I try to compile software on linux there are
:files for lex or yacc. Usually I think it's a good thing to have
:scanners and parsers generated automagically, but I seem never to be
:able to use files written for lex with flex. (Yes, I DO change the
:library to -lfl!) There are always quite some undefined symbols.
I encounter problems going from lex -> flex on just about any system that
has it. One of the main incompatabilites I have is the yyless() function. If
someone has a decent lex package for linux, would they please post where to
find it? If not, is there a flex equivelent for yyless()?
You won't find a more "decent" lex package than flex. yyless is a
macro in the flex output. How this leads to a solution of the
problem of undefined yyless symbol is left as an exercise to the
reader.