aspose file tools*
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
JavaRanch » Java Forums » Java » Java in General
Bookmark "JavaCC Tutorials" Watch "JavaCC Tutorials" New topic
Author

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
-bump-
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
Sheriff

Joined: Oct 13, 2005
Posts: 36508
    
  16
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
What are enums and annotations
Declaration of static members
JavaCC and Eclipse
Parsing scripts files through java
Regex for Spitting Tokenizing Java Code