From 12fccdde91ac1e39bcbb827b2232dfe6c8dc1f9e Mon Sep 17 00:00:00 2001 From: Kaiser <54066349+Ihre-Kaiserliche-Hoheit@users.noreply.github.com> Date: Thu, 16 Dec 2021 11:22:58 +0100 Subject: [PATCH 1/3] Fixed the Cat Goddamned, don't feed the cat with plastic shrimps --- sm-test-files/animals-example/cat.sm | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/sm-test-files/animals-example/cat.sm b/sm-test-files/animals-example/cat.sm index b08bec4..8127c44 100644 --- a/sm-test-files/animals-example/cat.sm +++ b/sm-test-files/animals-example/cat.sm @@ -12,21 +12,26 @@ ) +#meow /\ | ( - ¿??€/+meowingVolume >> 0\ | ( + ¿??€/+meowingVolume >> 0\? | ( ¡<=/"*silence*"!; - ) ?>$/+meowingVolume >> 0\ | ( + ) + ?>$/+meowingVolume >> 0\? | ( ¡<=/"mow"\!; - ) ?>$/+meowingVolume >> 2\ | ( + ) + ?>$/+meowingVolume >> 2\? | ( ¡<=/"meow"\!; - ) ?>$/+meowingVolume >> 5\ | ( + ) + ?>$/+meowingVolume >> 5\? | ( ¡<=/"Meow."\!; - ) ?>$/+meowingVolume >> 10\ | ( + ) + ?>$/+meowingVolume >> 10\? | ( ¡<=/"Meow!!"\!; - ) ?>$/+meowingVolume >> 20\ | ( + ) + ?>$/+meowingVolume >> 20\? | ( ¡<=/"MEOW!!!"\!; - ) >? | ( + ) + >?/ \? | ( !<=/"Error: weird as fuck meowing volume."\!; ) ) ) - From be2b4f7dfeec0a4f5145dc59442dfe703ceb9849 Mon Sep 17 00:00:00 2001 From: Kaiser <54066349+Ihre-Kaiserliche-Hoheit@users.noreply.github.com> Date: Thu, 16 Dec 2021 11:38:49 +0100 Subject: [PATCH 2/3] Get dogged! --- sm-test-files/animals-example/cat.sm | 2 +- sm-test-files/animals-example/dog.sm | 45 ++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+), 1 deletion(-) diff --git a/sm-test-files/animals-example/cat.sm b/sm-test-files/animals-example/cat.sm index 8127c44..a993167 100644 --- a/sm-test-files/animals-example/cat.sm +++ b/sm-test-files/animals-example/cat.sm @@ -30,7 +30,7 @@ ?>$/+meowingVolume >> 20\? | ( ¡<=/"MEOW!!!"\!; ) - >?/ \? | ( + >?/\? | ( !<=/"Error: weird as fuck meowing volume."\!; ) ) diff --git a/sm-test-files/animals-example/dog.sm b/sm-test-files/animals-example/dog.sm index e69de29..f8740ed 100644 --- a/sm-test-files/animals-example/dog.sm +++ b/sm-test-files/animals-example/dog.sm @@ -0,0 +1,45 @@ +&& import via &=> +¡&=> "animal.sm"! + +&& inherit via ::: +++dog:::animal ( + ¡+}}float{{ barkVolume!; + + ### /}}string{{ name\ /}}float{{ speed\ /}}float{{ barkVolume\ | ( + && ## calls the super + ¡##/name, speed\!; + ¡+barkVolume < barkVolume!; + ) + + +#meow /\ | ( + ¿??€/+barkVolume >> 0\? | ( + ¡<=/"*silence*"!; + ) + ?>$/+barkVolume >> 0\? | ( + ¡<=/"bak"\!; + ) + ?>$/+barkVolume >> 2\? | ( + ¡<=/"bark"\!; + ) + ?>$/+barkVolume >> 5\? | ( + ¡<=/"Bark."\!; + ) + ?>$/+barkVolume >> 10\? | ( + ¡<=/"Bark!!"\!; + ) + ?>$/+barkVolume >> 20\? | ( + ¡<=/"BARK!!!"\!; + ) + >?/\? | ( + !<=/"Error: weird as fuck bark volume."\!; + ) + ) + +#pissOnFloor /}}bool{{ needsToGo\ | ( + ¿??€/needsToGo true\ | ( + ¡<= "The dog pissed on the floor!"!; + ) + >?/\? | ( + ¡<= "The dog didn't piss on the floor!"!; + ) + ) +) From c0708355bf8a22dfb4da65e99b62b9e19757fb7f Mon Sep 17 00:00:00 2001 From: Kaiser <54066349+Ihre-Kaiserliche-Hoheit@users.noreply.github.com> Date: Thu, 16 Dec 2021 11:42:42 +0100 Subject: [PATCH 3/3] Create readme.md --- readme.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 readme.md diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..f158952 --- /dev/null +++ b/readme.md @@ -0,0 +1,14 @@ +# Strath - The String Math Language +## What is it? +Strath is an esolang that has a cryptic syntax and allows you to do math with strings, add them, multiply them, and even multiply with floats! + +Rust developers hate it, Python devdelopers fear it, and C devselopers make it blink. + +## How to Strath +### Comments + +### If, else if/elif, else + +### Variable Types + +### Working With Variables