tags:

views:

986

answers:

4

It's very difficult to find this kind of document online.

I found one in JAVAWORLD, but this one does not cover the jjTree and visiter one.

Does anybody happen to have some links to the tutorials?

A: 

Its been a while, but I found this tutorial very helpful on a previous project. I was able to create a query language for our application in a few days with basically no previous experience with javacc.

I've not read it but while looking for the other tutorial I also found this one.

zimbu668
+5  A: 

You can find a bunch of blog posts I've made regarding various JavaCC/JJTree topics on my JavaCC book's web site. There's a bunch of stuff there - using JavaCC to parse binary data, a JavaCC-based syntax highlighter, parsing fixed-width data with JavaCC, etc.

tomcopeland
Thanks, I have your book, and I enjoy reading it. I am just curious if there is any tutorial on this wonderful tool. ;)
Winston Chen
Yeah, unfortunately a lot of tutorials are pretty basic. The developerWorks tutorials that zimbu668 indicated is pretty good; it does some more advanced stuff. After that, if you Google around you can usually find some decent college class slideshows and examples and such. And after that, looking at actual grammars and trying to figure out why they work the way they do is probably the last step. And of course, there's always the <a href="https://javacc.dev.java.net/servlets/ProjectMailingListList">javacc-users mailing list</a>.
tomcopeland
Er, make that "the javacc-users mailing list": https://javacc.dev.java.net/servlets/ProjectMailingListList
tomcopeland
Cool! Thank you very much.
Winston Chen
I'm about halfway through the Book now: I highly recommend it.
Daniel
A: 

This is the main reason why I didn't end up liking a class that used javacc, even the staff couldn't figure some of the bugs/messages out. It seems anyone would be much better off using something more standard, like flex & bison.

dlamblin
A: 

hello, I am working on a parser excel-like that parse general expressions(arithmetic and logic) and I have a problem to handle multiple calls of the same fuction(eg: cos(sin(pi*6))) and how to handle an unlimited number of imbrications please need help!

Don't Panic