LEX and YACC under QNX

Hi,

I have to work with LEX and YACC.
Which library do I need in order to compile and link C files generated by
LEX and YACC?

Thanks in advance
Michele

“MicheleD” <Michele-D@ibelgique.com> wrote:

Hi,

I have to work with LEX and YACC. Which library do I need in order to
compile and link C files generated by LEX and YACC?

Hmm. I’ve only used the GNU versions of these tools, flex and bison,
which are the commandline utilities that come with QNX 6.2. QNX does
not supply the flex library, so you can’t link against it unless you
download and compile flex from source; however, I don’t think you should
need it.

From the flex manual:
(http://www.gnu.org/manual/flex-2.5.4/html_mono/flex.html)

"Some `%option’s’ provide features otherwise not available:

yywrap' if unset (i.e., %option noyywrap’), makes the scanner not call
yywrap()' upon an end-of-file, but simply assume that there are no more files to scan (until the user points yyin at a new file and calls yylex()’ again).

So you can put ‘%option noyywrap’ in your description file, or roll your
own yywrap() function if you need one. You really shouldn’t need to
link in the flex library.

IIRC, the skeleton parsers for bison are in /usr/share/bison.simple and
bison.hairy…

HTH,

  • Dave