User Documentation

Tutorials

Grammars

Please visit the GrammarPage.

Concrete to Abstract Syntax Trees (CST -> AST)

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:

Online  http://sablecc.sourceforge.net/thesis/thesis.html
HTML  http://sablecc.sourceforge.net/downloads/thesis.html.zip
PDF  http://sablecc.sourceforge.net/downloads/thesis.pdf
PS  http://sablecc.sourceforge.net/downloads/thesis.ps.zip

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.

There is also a search function on the top right of this page.