Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

lex/yacc for C++

Posted on 1997-11-27
6
1,321 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
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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.

 

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
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.

856 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