Merge pull request #4 from Ihre-Kaiserliche-Hoheit/main

Stuff for and more stuff
This commit is contained in:
Schrottkatze 2021-12-16 11:45:13 +01:00 committed by GitHub
commit 602600c8ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 60 additions and 1 deletions

14
readme.md Normal file
View file

@ -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

View file

@ -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!"!;
)
)
)