Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
48 lines (29 sloc) 979 Bytes

scalac hook

Scala compiler hook to simplify working with scala compiler plugins.

Prerequisites

Scala

Scala version 2.10.1

SBT

paulp/sbt-extras.

Package

$ sbt package

Usage

$ scala \
  -Xplugin:core/target/scala-2.10/scalac-hook_2.10-0.1-SNAPSHOT.jar,examples/target/scala-2.10/scalac-hook-examples_2.10-0.1-SNAPSHOT.jar \
  -P:hook:io.svc.scalac.hook.example.traverser.Println.PrintlnHook

Usage via SBT

$ sbt console

Create your own hook

See the Println example for a dummy implementation that shows what you have to implement. Then take a fresh dive into the scala-compiler code.

License

BSD

Thanks!

Thanks to Paul Phillips and Eugene Burmako for their suggestions.