commit 8c25a8be3e293fcc27f7bfc9ac0f34dfe8e06900 Author: Maxwell Jeffress Date: Fri Dec 13 11:01:20 2024 +1100 Initial commit 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 { +