about summary refs log tree commit diff
path: root/examples/out
diff options
context:
space:
mode:
authorNakidai <nakidai@disroot.org>2025-03-31 17:22:19 +0300
committerNakidai <nakidai@disroot.org>2025-03-31 17:22:19 +0300
commit445784a629c99336d47b31ea9540bd95bbb97dc1 (patch)
tree119e91b0fb0813244a7d3968a7cc405e722a2979 /examples/out
parentd0ea12857007f9d6d48df7e87b8dcdff4dd8a75e (diff)
download3cl-445784a629c99336d47b31ea9540bd95bbb97dc1.tar.gz
3cl-445784a629c99336d47b31ea9540bd95bbb97dc1.zip
Add 2 more examples
- Number parser
- Factorial (2 ways to implement)
Diffstat (limited to 'examples/out')
-rw-r--r--examples/out/fac12
-rw-r--r--examples/out/num12
2 files changed, 24 insertions, 0 deletions
diff --git a/examples/out/fac b/examples/out/fac
new file mode 100644
index 0000000..3de0ab5
--- /dev/null
+++ b/examples/out/fac
@@ -0,0 +1,12 @@
+Globals:
+  a=0
+  b=720
+  c=0
+  z=0
+Functions:
+  F, 13 nodes
+  I, 7 nodes
+Stack:
+  6
+  720
+  720
diff --git a/examples/out/num b/examples/out/num
new file mode 100644
index 0000000..f268f3b
--- /dev/null
+++ b/examples/out/num
@@ -0,0 +1,12 @@
+Globals:
+  e=1
+  n=9
+  t=10
+  z=47
+  E=-1
+  T=58
+  Z=0
+Functions:
+  P, 3 nodes
+Stack:
+  22869