Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

lex/yacc for C++

Posted on 1997-11-27
6
Medium Priority
?
1,339 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
[X]
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
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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

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 200 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

Technology Partners: 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!

Question has a verified solution.

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

Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
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 user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
Suggested Courses

618 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