uploaded current state of stacat

This commit is contained in:
2025-06-14 00:29:53 +02:00
parent e1824fc79c
commit 69bff131db
17 changed files with 643 additions and 0 deletions

33
notes.md Normal file
View 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 >^+>+^*>^+^+^+*