Skip to content

SpritzLanguage/Spritz

Repository files navigation

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.

About

The main repository for the Spritz language

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages