Merge pull request #4 from Ihre-Kaiserliche-Hoheit/main
Stuff for and more stuff
This commit is contained in:
commit
602600c8ef
3 changed files with 60 additions and 1 deletions
14
readme.md
Normal file
14
readme.md
Normal 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
|
|
@ -30,7 +30,7 @@
|
||||||
?>$/+meowingVolume >> 20\? | (
|
?>$/+meowingVolume >> 20\? | (
|
||||||
¡<=/"MEOW!!!"\!;
|
¡<=/"MEOW!!!"\!;
|
||||||
)
|
)
|
||||||
>?/ \? | (
|
>?/\? | (
|
||||||
!<=/"Error: weird as fuck meowing volume."\!;
|
!<=/"Error: weird as fuck meowing volume."\!;
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
|
@ -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!"!;
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
Loading…
Reference in a new issue