Lex and Yacc

Lex and Yacc

Post by nathan wagn » Sun, 27 Oct 1996 04:00:00






>> I am trying to compile my yacc program using gcc with the -ly library,
>> but I keep getting complier error:

>On Linux, yacc is actually bison.  It doesn't need a library.

Speak for yourself.  On my system, yacc is byacc.  Bison is too legally
encumbered for me to use comfortably.  So i use byacc.  I don't think it
needs a library though.  I'd have to check to be sure, it's been a while
since i've used it, i usually go with PCCTS these days.

--
nathan wagner

 
 
 

Lex and Yacc

Post by Adam T. Karchm » Sun, 27 Oct 1996 04:00:00


I am trying to compile my yacc program using gcc with the -ly library,
but I keep getting complier error:
/usr/i486-linux/bin/ld: cannot open -ly: No such file or directory

Does anyone know where the library is, or how I can link it to the path?  
I am using slackware and have version 2.0.0.

thanks,
adam

 
 
 

Lex and Yacc

Post by Bob Hau » Sun, 27 Oct 1996 04:00:00




Quote:> I am trying to compile my yacc program using gcc with the -ly library,
> but I keep getting complier error:

On Linux, yacc is actually bison.  It doesn't need a library.

---

 Wasatch Communications Group               http://www.wasatch.com

 
 
 

Lex and Yacc

Post by Russ Hugul » Mon, 28 Oct 1996 03:00:00





>> I am trying to compile my yacc program using gcc with the -ly library,
>> but I keep getting complier error:

>On Linux, yacc is actually bison.  It doesn't need a library.

On a similer note I kept getting a link error about yywrap.  Very annoying I
thought I might need a new bison but that did not help.  I finally just
added a yywrap function to my programs.  That fixed the error but it is
annoying...

Is there a better answer for this?

--
I've followed you, talked to your neighbors, tapped your phone, and even shot
at you to see how you would react.  From my observations I have come to one
irrefutable conclusion: You are Paranoid.  --unknown

 
 
 

Lex and Yacc

Post by Bob Hau » Mon, 28 Oct 1996 03:00:00







>>> I am trying to compile my yacc program using gcc with the -ly library,
>>> but I keep getting complier error:

>>On Linux, yacc is actually bison.  It doesn't need a library.

> On a similer note I kept getting a link error about yywrap.  

This error isn't from bison, it is from flex (aka lex).  You must
either link "libfl.a", supply your own yywrap(), or use "%option
noyywrap" in your lexer definition.  The scanner calls yywrap() on
EOF.  Yywrap() can either point yyin to a new file and return false
to continue scanning from the new file, or it can return true to
indicate no more files.  Using "noyywrap" is the same as yywrap()
always returning true.

See "man flex" for more information.

---

 Wasatch Communications Group               http://www.wasatch.com

 
 
 

1. YACC + YACC = YACC

Hi,

I'd like to use YACC and LEX twice in an executable. I'd like to read
two different file formats at different times in the program. I link
two objects, each created by yacc. The later object overwrites the
previous definitions.

Is there any way to make the yacc funtions unique?

-frank


Concurrent Technologies Corp.
1450 Scalp Avenue                       Phone:  (814) 269-2650
Johnstown, PA 15904                     Fax:    (814) 269-2402

2. modules

3. Looking for a bit oriented Lex/yacc

4. UNIX OS Restore/Builder utility.

5. Object-oriented lex(flex) and yacc(bison) for c++?

6. : /etc/fstab sensitivity to tabs/spaces (e2fs)

7. Lex, YACC - when first in Unix?

8. Getting hold of the mac address

9. YACC & LEX under Microsoft Windows

10. lex/yacc problem: parsing only part of text stream

11. The Lex & Yacc source code for C++

12. lex and yacc problem

13. yacc,lex and ar