• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JavaCC Tutorials

 
Cody Long
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Cody Long
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
-bump-
 
Cody Long
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 48652
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to write a grammar for your language, and make sure it is context-free.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic