This commit is contained in:
Schrottkatze 2021-12-16 17:52:11 +01:00
commit 4ab1565f9d
3 changed files with 41 additions and 30 deletions

View file

@ -2,7 +2,8 @@
&& '++name declares an abstract class
&& all of that is, of course, a statement so ¡!
'++animal (
&<='++animal (
&& +}}type{{ declares a property of a class
&& "+}}type{{ declares a static property of a class
@ -14,7 +15,7 @@
¡<=/"Created animal named " + name\!;
&& +var refers to a property, like this. in other languages
&& you can only assign values to static variables once in this language
&& you can only assign values to static variables once in this language
¡+name < name!;
¡+speed < speed!;
)

View file

@ -3,32 +3,6 @@
&& inherit via :::
++cat:::animal (
<<<<<<< HEAD
¡+}}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."\!;
)
=======
¡+}}float{{ meowingVolume!;
### /}}string{{ name\ /}}float{{ speed\ /}}float{{ meowingVolume\ | (
@ -58,6 +32,5 @@
)
>?/\? | (
!<=/"Error: weird as fuck meowing volume."\!;
>>>>>>> 602600c8ef3124194f256b9d0ef99d3d6a418abe
)
)