mirror of
https://gitlab.com/VoidEUW/stacat.git
synced 2025-12-12 15:18:41 +00:00
uploaded current state of stacat
This commit is contained in:
33
notes.md
Normal file
33
notes.md
Normal file
@@ -0,0 +1,33 @@
|
||||
|
||||
|
||||
Syntax:
|
||||
>: pushes 1 onto the stack
|
||||
^: clones the current value onto the stack
|
||||
|
||||
+: pops the stack twice and pushes the sum onto the stack
|
||||
-: pops the stack twice and pushes the difference onto the stack
|
||||
*: pops the stack twice and pushes the product onto the stack
|
||||
|
||||
#: pops the stack and repeats the next operation n times
|
||||
|
||||
!: pops the stack and outputs n as an ASCII character to the standard output
|
||||
?: pushes the next character from the standard input onto the stack
|
||||
|
||||
_: start line comment
|
||||
|
||||
Präprozessorbefehle?! "A()"
|
||||
|
||||
Unused: " $ & ' ( ) , . : ; = @ [ \ ] ` { | }
|
||||
|
||||
Number examples:
|
||||
1 >
|
||||
2 >^+
|
||||
3 >^+>+
|
||||
4 >^+^+
|
||||
5 >^+^+>+
|
||||
6 >^+^>+*
|
||||
7 >^+^>+*>+
|
||||
8 >^+^+^+
|
||||
9 >^+>+^*
|
||||
10 >^+>+^*>+
|
||||
72 >^+>+^*>^+^+^+*
|
||||
Reference in New Issue
Block a user