Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Leiningen plugin to compile Ragel source files.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 src
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.md
Octocat-spinner-32 project.clj
README.md

lein-ragel

A Leiningen plugin to compile Ragel state machines to Java source files.

Usage

Put [lein-ragel "0.1.0"] into the :plugins vector of your project.clj and set :ragel-source-paths to the path to your Ragel source files.

Then compile any stale Ragel source files to Java source files by running:

$ lein ragel

For optimal usefulness, you will probably want to include :ragel-compile-path (default target/ragel) in your :java-source-paths and ragel in your :prep-tasks. Example:

(defproject example-project "0.1.0-SNAPSHOT"
  ...
  :plugins [[lein-ragel "0.1.0"]]
  :java-source-paths ["target/ragel"]
  :ragel-source-paths ["src/ragel"]
  :prep-tasks ["ragel" "javac"]
  ...)

You may specify the Ragel command to use with :ragel-command and any other options to pass to Ragel with :ragel-options.

License

Copyright © 2012 Marshall Bockrath-Vandegrift

Distributed under the Eclipse Public License, the same as Clojure.

Something went wrong with that request. Please try again.