scaladon


License

License

Categories

Categories

Scala Languages
GroupId

GroupId

li.pika
ArtifactId

ArtifactId

scaladon_2.12
Last Version

Last Version

0.2.0
Release Date

Release Date

Type

Type

jar
Description

Description

scaladon
scaladon
Project URL

Project URL

https://github.com/solidsnack/scaladon
Project Organization

Project Organization

li.pika
Source Code Management

Source Code Management

https://github.com/solidsnack/scaladon

Download scaladon_2.12

How to add to project

<!-- https://jarcasting.com/artifacts/li.pika/scaladon_2.12/ -->
<dependency>
    <groupId>li.pika</groupId>
    <artifactId>scaladon_2.12</artifactId>
    <version>0.2.0</version>
</dependency>
// https://jarcasting.com/artifacts/li.pika/scaladon_2.12/
implementation 'li.pika:scaladon_2.12:0.2.0'
// https://jarcasting.com/artifacts/li.pika/scaladon_2.12/
implementation ("li.pika:scaladon_2.12:0.2.0")
'li.pika:scaladon_2.12:jar:0.2.0'
<dependency org="li.pika" name="scaladon_2.12" rev="0.2.0">
  <artifact name="scaladon_2.12" type="jar" />
</dependency>
@Grapes(
@Grab(group='li.pika', module='scaladon_2.12', version='0.2.0')
)
libraryDependencies += "li.pika" % "scaladon_2.12" % "0.2.0"
[li.pika/scaladon_2.12 "0.2.0"]

Dependencies

compile (2)

Group / Artifact Type Version
org.scala-lang : scala-compiler jar 2.12.2
org.scala-lang : scala-library jar 2.12.2

Project Modules

There are no modules declared in this project.

scaladon

Embed a Scala interpreter in your application with scaladon. See li.pika.scaladon.Main for an example of how to use the li.pika.scaladon.Engine.

 :; sbt assembly
    ...
    [success] Total time: 12 s, completed Jul 7, 2017 8:03:11 PM

 :; java -jar target/scala-*/uber.jar
    Welcome to Scala 2.12.2 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_102).
    Type in expressions for evaluation. Or try :help.

    scala> val task = li.pika.scaladon.tasks.Task.settings()
    task: scala.tools.nsc.Settings =
    Settings {
      -nc = true
      -d = .
      -deprecation = true
      -usejavacp = true
      -feature = true
    }

Configuring The Interpreter

The li.pika.scaladon.Engine allows one to set three settings:

case class Engine(bindings: Bindings = new SimpleBindings(),
                  prompt: Option[String] = None,
                  welcome: Option[String] = None) { ... }

The bindings apply for scripts while the prompt and welcome apply to the interactive interpreter. (At present, scaladon is not able to set bindings for the interactive interpreter.)

Versions

Version
0.2.0
0.1.0