Releases: eed3si9n/eval
Releases · eed3si9n/eval
0.3.0
0.2.0
Eval evaluates Scala 3 code. Eval 0.2.0 is cross published for Scala 3.1.3 and 3.2.0.
See https://eed3si9n.com/eval/
Bug fixes
- Adds support of JDK 11+ by @novakov-alexey in #1
- Fixes lazy val support by @eed3si9n in #2
New Contributors
- @novakov-alexey made their first contribution in #1
Full Changelog: v0.1.0...v0.2.0
0.1.0
Eval evaluates Scala 3 code. It’s a Scala 3 port of Eval class used in sbt.
package example
import com.eed3si9n.eval.Eval
import com.eed3si9n.eval.EvalReporter
import java.nio.file.Paths
@main def main(): Unit =
val eval = Eval(
backingDir = Paths.get("/tmp/classes"),
mkReporter = () => EvalReporter.store
)
val result = eval.evalInfer("2")
println(result.tpe)
println(result.getValue(this.getClass.getClassLoader))
The above prints:
Int
2
See https://eed3si9n.com/eval/ for more details.