Solved

lex/yacc for C++

Posted on 1997-11-27
6
1,323 Views
Last Modified: 2006-11-17
I'm looking for lex/yacc for C++. I found flex++ which serves my purpose from the parser point of view. Now yacc I found bison++ but the problem is that bison is very strict with respect to copyright. It says that if I use bison then any software created by using bison should be free. I need this in a commercial application so I can't use bison. Is there any other yacc++ which is like flex++ with respect to copying issues?
0
Comment
Question by:agj
6 Comments
 
LVL 5

Expert Comment

by:yonat
ID: 1174286
0
 
LVL 2

Expert Comment

by:JensUniweb
ID: 1174287
If bison++ say you can not sell your application then flex should do the same. They are part of the same GNU project. Anyway there are several comersion lex/yacc application that can create c++ code. I don't remember any names. But I think one was called visual yacc.
0
 
LVL 15

Expert Comment

by:Tommy Hui
ID: 1174288
You should check out MKS Yacc and Lex. They provide the PC version of the UNIX tools with the same name.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:agj
ID: 1174289
I was not looking for the PC version. I need it in unix. Anyway, I started looking more closely and they redefined the conditions on bison. As of bison 1.24 I'm able to use for non-free software. I am hence, using bison++/flex++.
thanks.
0
 
LVL 3

Accepted Solution

by:
os012897 earned 100 total points
ID: 1174290
Have a look at PCCTS!

You can find it at:
ftp://ftp.parr-research.com/pub/pccts/1.33/
http://iaipc80.iai.fzk.de/users/kaiser/pccts/pccts-nt.htm
http://www.scruz.net/~thetick/pcctstut
http://java.magelang.com/antlr/
http://www.mcs.net/~tmoog/pccts.html


It does what you want and even has some nice documentation
coming with it!

Greetings,

           os

PS: If you do not need an answer anymore, delete your question!
0
 
LVL 1

Expert Comment

by:moquin
ID: 1174291
Take a look at AnaGram.  It is FAR AND AWAY superior to lex/flex/YACC/Bison/PCCTS, etc.  You can find it at www.parsifalsoft.com.  It isn't free, however.

Brian

0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question