Parsing - YACC to java

E

exits funnel

Hello,

I've recently been tasked with writing a parser for MDX (roughly
speaking, SQL for OLAP). One such parser has already been written
within our organization and I was able to obtain the .y and .l files
which were created for that project. However, my implementation
language is Java so I can't use Bison/Flex directly. Still, I'd rather
not have to construct the MDX grammar from scratch. I've found one
piece of software, jb (http://www.cs.colorado.edu/serl/misc/jb.html)
which converts a parser generated with Bison to java. However, it seems
that this project is no longer being maintained and there is very little
documentation: both of these issues make me a bit reluctant to commit to
using it. So, with all that rambling out of the way, here are my questions:

1) Does anyone here have any experience with jb?
2) Can anyone recommend any alternative products for generating a java
parser from a Yacc/Bison grammar?

Thanks in advance!

-exits
 
R

Roedy Green

1) Does anyone here have any experience with jb?
2) Can anyone recommend any alternative products for generating a java
parser from a Yacc/Bison grammar?

I have been collecting various parsing projects. Have a look at
http://mindprod.com/jgloss/parser.html to see if there is anything
there that can help. The most popular stuff seems to be JavaCC.
 
E

exits funnel

Roedy said:
I have been collecting various parsing projects. Have a look at
http://mindprod.com/jgloss/parser.html to see if there is anything
there that can help. The most popular stuff seems to be JavaCC.

Roedy, thanks for taking the time to reply; I'll check it out. By the
way, I've used the Java Glossary often in the past; it's a great
resouce, thanks for maintaining it.

-exits
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top