Skip to content
Leiningen plugin to compile Ragel source files.
Clojure
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
src/leiningen
.gitignore
README.md
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.