wood burning stoves 2.0*
The moose likes Java in General and the fly likes JavaCC Tutorials Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "JavaCC Tutorials" Watch "JavaCC Tutorials" New topic

JavaCC Tutorials

Cody Long
Ranch Hand

Joined: Jan 01, 2009
Posts: 95
Can anyone point me to some JavaCC tutorials? Preferably a tutorial that starts from scratch and writes a minimal language if possible.

I have already looked at this tutorial and made the calculator and added the modulus function. But i am confused on how to continue on with making my mini language.

Any help would be appreciated. Thank you.

Duct tape is like the Force. It has a dark side, a light side, and it binds the whole universe together.
Cody Long
Ranch Hand

Joined: Jan 01, 2009
Posts: 95
Cody Long
Ranch Hand

Joined: Jan 01, 2009
Posts: 95
I have decided to use ANTLR instead becuase there seems to be more documentation and tutorials out there about it. So no need to post any replies.
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 38087
You need to write a grammar for your language, and make sure it is context-free.
I agree. Here's the link: http://aspose.com/file-tools
subject: JavaCC Tutorials
Similar Threads
Declaration of static members
Parsing scripts files through java
What are enums and annotations
JavaCC and Eclipse
Regex for Spitting Tokenizing Java Code