Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A Gradle plugin for the SableCC parser generator.

branch: master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 codequality
Octocat-spinner-32 gradle
Octocat-spinner-32 src
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE
Octocat-spinner-32 build.gradle
Octocat-spinner-32 gradlew
Octocat-spinner-32 gradlew.bat
Octocat-spinner-32 settings.gradle


This is a gradle plugin which creates parsers using SableCC, clearly the best parser-generator known to man. Why is it the best? Because it supports automatic CST-to-AST transformation, emits all the visitor patterns and analysis helpers you will ever need, and is LR, not LL(k).

Why is it version 1.0.0? Because I've been using it in my own projects for a long time now, it's basically debugged, and you should use it too. However, no software survives contact with a customer, so by the time you read this, it's probably version 1.7.15 or something.


To apply a default configuration which transforms src/main/sablecc into build/generated-sources/sablecc:

buildscript {
    dependencies {
        compile 'org.anarres.gradle:gradle-sablecc-plugin:[1.0.0,)'

apply plugin: 'sablecc'

sablecc {
    // ...

API Documentation

The JavaDoc API is also available, but not very interesting.

Something went wrong with that request. Please try again.