This page is no longer maintained — Please continue to the home page at www.scala-lang.org

SBT buildable version of DivByZero compiler plugin

No replies
iainmcgin
Joined: 2011-07-19,
User offline. Last seen 42 years 45 weeks ago.

Hi all,

After a brief conversation with Paul Phillips at Scalathon, I decided
it would be a good idea to produce an SBT 0.10 buildable version of
the DivByZero plugin that is described in Lex Spoon's tutorial on
compiler plugins. This should make it a bit easier for people (like
myself) to get started when playing with compiler plugins. The code
can be found here:

https://github.com/iainmcgin/scalac-divbyzero-plugin

The build targets 2.9.0-1 by default, however it is also set up for
cross building and can output JARs for 2.8.0, 2.8.1, 2.9.0, 2.9.0-1
and 2.10.0-SNAPSHOT (for testing against the nightly). The readme in
the project describes how to do the cross building, which sbt makes
very easy.

I hope this helps at least one person, other than myself!

Cheers,
Iain McGinniss

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland