User Documentation
Tutorials
- Base tutorial (Chapter 3 of the original thesis): http://sablecc.sourceforge.net/thesis/thesis.html#PAGE21
- Another tutorial by Fidel Viegas: http://www.brainycreatures.org/compiler/sablecc.asp (via Internet Archive Wayback Machine, until the main site is back online: http://replay.waybackmachine.org/20090611141114/http://www.brainycreatures.org/compiler/sablecc.asp)
Grammars
Please visit the GrammarPage.
Concrete to Abstract Syntax Trees (CST -> AST)
- A tutorial by Nat Pryce: http://www.natpryce.com/articles/000531.html
Using SableCC in Eclipse
Here is a nice tutorial on how to setup SableCC in your Eclipse development environment: http://www.comp.nus.edu.sg/~sethhetu/rooms/Tutorials/EclipseAndSableCC.html.
Using SableCC in Eclipse 3.3
Here is a nice eclipse plugin developed by kun deng for your Eclipse environment: http://cse.unl.edu/~kdeng/myweb/fun/code/code.html
Alternative Output (SableCC 3.x)
Indrek Mandre has developed an alternative output module for SableCC 3.x which generates C#, C++, O'Caml, Python, C, dotgraph, and xml code.
See: http://www.mare.ee/indrek/sablecc/.
Definitive Reference
The original thesis:
Other Documentation (Old Site)
The documentation page of the old site is located at http://sablecc.sourceforge.net/documentation.html.
HOWTO
LexerUnitTests - Writing unit tests for your lexer rules
Compiler Design Textbooks Which Use SableCC
Appel, Andrew, Modern Compiler Implementation in Java (2nd edition), Cambridge University Press, 2002.
Bergmann, Seth D., Compiler Design: Theory, Tools, and Examples, (available free at http://cs.rowan.edu/~bergmann/books)
Mailing List Archive
The MailingList archives (including historical ones) contain a huge amount of information and answers to common questions.
Wiki
You can help improve this user documentation page; simply edit this page and add new pages. (You must first create an account and login).
You can find the list of all existing wiki pages in the TitleIndex.
Search
There is also a search function on the top right of this page.
