1834569 Members
3794 Online
110069 Solutions
New Discussion

What is yacc

 
SOLVED
Go to solution
Cai Nan
Advisor

What is yacc

Hi,all.
I use HP10.20,when successfuly finished ./configure wu-ftp-2.6.2, I make,but get following error message:
*****************************
Make: Cannot load yacc. Stop.

What is yacc and where is it in the system?

Thanks!
--Frank
DAEMON
5 REPLIES 5
Pal Szabo_1
Valued Contributor
Solution

Re: What is yacc

Hi!

Yacc is an LALR(1) parser generator.Yacc can accept any input specification that conforms to the AT&T
Yacc documentation.
It reads the grammar specification and generates an LR(1) parser for it. The parsers consist of a set of LALR(1) parsing tables and a driver
routine in C (y.tab.c)

I found a new version:
http://hpux.asknet.de/hppd/hpux/Languages/byacc-3.0/

It is a Berkeley yacc, and it is compatible with AT&T yacc.

It isnt part of the operating system.May you configure script use it.
Steven Sim Kok Leong
Honored Contributor

Re: What is yacc

Hi,

In case you are wondering what it stands for,

YACC = Yet Another Compiler Compiler

Hope this helps. Regards.

Steven Sim Kok Leong
harry d brown jr
Honored Contributor

Re: What is yacc

Frank,

When I think of yacc, I have visions of a salesperson running their mouth about some product that I really don't want or need:

yacc, yacc, yacc :-))

if you do a google search for "examples yacc", you'll find a lot of stuff on it.


live free or die
harry
Live Free or Die
A. Clay Stephenson
Acclaimed Contributor

Re: What is yacc

Hi:

As mentioned yacc is a compiler generator. You set a series of rules (myfile.y) and yacc will produce a parser. There is also another piece called lex whose job is to identify symbols. You don't get these unless you purchase sort sort of developer's bundle. You can also install the freely available Gnu versions.

If it ain't broke, I can fix that.
A. Clay Stephenson
Acclaimed Contributor

Re: What is yacc

Hi:

I suppose I should have told you that the Gnu version of yacc is called 'bison' and is available for download at: http://hpux.connect.org.uk/hppd/hpux/Gnu/bison-1.29d/
If it ain't broke, I can fix that.