yesxklm
This commit is contained in:
commit
67c594e87b
3 changed files with 91 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
|
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
&& inherit via :::
|
&& inherit via :::
|
||||||
++cat:::animal (
|
++cat:::animal (
|
||||||
|
<<<<<<< HEAD
|
||||||
¡+}}float{{ meowingVolume!;
|
¡+}}float{{ meowingVolume!;
|
||||||
|
|
||||||
### /}}string{{ name\ /}}float{{ speed\ /}}float{{ meowingVolume\ | (
|
### /}}string{{ name\ /}}float{{ speed\ /}}float{{ meowingVolume\ | (
|
||||||
|
@ -27,6 +28,36 @@
|
||||||
) >? | (
|
) >? | (
|
||||||
!<=/"Error: weird as fuck meowing volume."\!;
|
!<=/"Error: weird as fuck meowing volume."\!;
|
||||||
)
|
)
|
||||||
|
=======
|
||||||
|
¡+}}float{{ meowingVolume!;
|
||||||
|
|
||||||
|
### /}}string{{ name\ /}}float{{ speed\ /}}float{{ meowingVolume\ | (
|
||||||
|
&& ## calls the super
|
||||||
|
¡##/name, speed\!;
|
||||||
|
¡+meowingVolume < meowingVolume!;
|
||||||
|
)
|
||||||
|
|
||||||
|
+#meow /\ | (
|
||||||
|
¿??€/+meowingVolume >> 0\? | (
|
||||||
|
¡<=/"*silence*"!;
|
||||||
|
)
|
||||||
|
?>$/+meowingVolume >> 0\? | (
|
||||||
|
¡<=/"mow"\!;
|
||||||
|
)
|
||||||
|
?>$/+meowingVolume >> 2\? | (
|
||||||
|
¡<=/"meow"\!;
|
||||||
|
)
|
||||||
|
?>$/+meowingVolume >> 5\? | (
|
||||||
|
¡<=/"Meow."\!;
|
||||||
|
)
|
||||||
|
?>$/+meowingVolume >> 10\? | (
|
||||||
|
¡<=/"Meow!!"\!;
|
||||||
|
)
|
||||||
|
?>$/+meowingVolume >> 20\? | (
|
||||||
|
¡<=/"MEOW!!!"\!;
|
||||||
|
)
|
||||||
|
>?/\? | (
|
||||||
|
!<=/"Error: weird as fuck meowing volume."\!;
|
||||||
|
>>>>>>> 602600c8ef3124194f256b9d0ef99d3d6a418abe
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -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