Skip to content

Latest commit

 

History

History
73 lines (54 loc) · 1.39 KB

README.md

File metadata and controls

73 lines (54 loc) · 1.39 KB

Spritz

version

An interpreted programming language written in Kotlin, designed for interoperability with the JVM.

Get Started

Add Spritz to your project, with your build system of choice:

Gradle (Groovy)
repositories {
    maven { url 'https://jitpack.io' }
}

dependencies {
    implementation 'com.github.SpritzLanguage:Spritz:1.0.0-alpha'
}
Gradle (Kotlin)
repositories {
    maven("https://jitpack.io")
}

dependencies {
    implementation("com.github.SpritzLanguage:Spritz:1.0.0-alpha")
}
Maven
<repositories>
    <repository>
        <id>jitpack.io</id>
        <url>https://jitpack.io</url>
    </repository>
</repositories>

<dependency>
    <groupId>com.github.SpritzLanguage</groupId>
    <artifactId>Spritz</artifactId>
    <version>1.0.0-alpha</version>
</dependency>

Create a SpritzEnvironment instance to handle scripting:

val env = SpritzEnvironment(Config())
    .setWarningHandler(::println)
    .setErrorHandler(::println)

You can then evaluate a file with the SpritzEnvironment#evaluate method:

env.evaluate(File("example.sz"))

Please read the documentation (coming soon) for more information.