Language: Scala

Boxer: a demo scalac plugin, embedded in your SBT project.

Ever wish you could inject some extra analysis into the compiler pipeline for your project? You could write a compiler plugin, package, distribute it, and depend on it, but the activation energy for that is pretty high.

Boxer shows you how to embed a custom compiler plugin directly into a sub-project of your SBT project. With this in place, you can edit the plugin, run compile, and immediately see the results in the context of your project.

What's inside

Sample Output

[info] Compiling 1 Scala source to /Users/jason/code/boxer/plugin/target/scala-2.9.2/classes...
[info] Done updating.
[info] Packaging /Users/jason/code/boxer/plugin/target/scala-2.9.2/plugin_2.9.2-0.1-SNAPSHOT.jar ...
[info] Done packaging.
[info] Compiling 1 Scala source to /Users/jason/code/boxer/main/target/scala-2.9.2/classes...
[warn] /Users/jason/code/boxer/main/src/main/scala/demo/Demo.scala:8: Value class `Meter` instantiated!
[warn]   println(m2)
[warn]           ^
[warn] one warning found

Project Statistics

Sourcerank 4
Repository Size 5.86 KB
Stars 43
Forks 7
Watchers 10
Open issues 1
Dependencies 0
Contributors 1
Tags 0
Last updated
Last pushed

Top Contributors See all

Jason Zaugg

Something wrong with this page? Make a suggestion

Last synced: 2017-11-24 20:10:45 UTC

Login to resync this repository