From 8c25a8be3e293fcc27f7bfc9ac0f34dfe8e06900 Mon Sep 17 00:00:00 2001 From: Maxwell Jeffress Date: Fri, 13 Dec 2024 11:01:20 +1100 Subject: [PATCH] Initial commit --- .gitignore | 7 +++ build.gradle.kts | 34 ++++++++++++ examples/main.chsp | 16 ++++++ settings.gradle.kts | 5 ++ src/main/kotlin/Main.kt | 120 ++++++++++++++++++++++++++++++++++++++++ 5 files changed, 182 insertions(+) create mode 100644 .gitignore create mode 100644 build.gradle.kts create mode 100644 examples/main.chsp create mode 100644 settings.gradle.kts create mode 100644 src/main/kotlin/Main.kt diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4bf4cde --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +.gradle +.build +build +gradle +.kotlin +out + diff --git a/build.gradle.kts b/build.gradle.kts new file mode 100644 index 0000000..423045b --- /dev/null +++ b/build.gradle.kts @@ -0,0 +1,34 @@ +plugins { + kotlin("jvm") version "2.0.0" + application + distribution +} + +application { + mainClass.set("xyz.maxwellj.chookspeak.MainKt") + layout.buildDirectory.dir("distributions/") +} + +group = "xyz.maxwellj.chookspeak" +version = "0.0.1" + +repositories { + mavenCentral() +} + +tasks.withType { + manifest { + attributes["Main-Class"] = "xyz.maxwellj.chookspeak.MainKt" + } +} + +dependencies { + testImplementation(kotlin("test")) +} + +tasks.test { + useJUnitPlatform() +} +kotlin { + jvmToolchain(17) +} diff --git a/examples/main.chsp b/examples/main.chsp new file mode 100644 index 0000000..68d47c9 --- /dev/null +++ b/examples/main.chsp @@ -0,0 +1,16 @@ +// comment lmao +/* a confusing comment */ +egg notepad +init { + sendMessage "Hello there!" + html { +