summaryrefslogtreecommitdiffstats
path: root/demo-funktionen.txt
diff options
context:
space:
mode:
authorBenedikt Böhm <bb@xnull.de>2009-05-18 20:53:42 +0200
committerBenedikt Böhm <bb@xnull.de>2009-05-18 20:53:42 +0200
commit49f510d2d60129526832bfcd9c0f4049962bc80e (patch)
tree2828b773c75bdbc4014a3421c8046778a1a2b11b /demo-funktionen.txt
parent144258f0196b69cbdd2f29bd501276942efc3182 (diff)
downloadswppy-49f510d2d60129526832bfcd9c0f4049962bc80e.tar.gz
swppy-49f510d2d60129526832bfcd9c0f4049962bc80e.tar.xz
swppy-49f510d2d60129526832bfcd9c0f4049962bc80e.zip
move stuff around and create initial source structure
Diffstat (limited to 'demo-funktionen.txt')
-rw-r--r--demo-funktionen.txt53
1 files changed, 0 insertions, 53 deletions
diff --git a/demo-funktionen.txt b/demo-funktionen.txt
deleted file mode 100644
index ad16f4b..0000000
--- a/demo-funktionen.txt
+++ /dev/null
@@ -1,53 +0,0 @@
-
-fun fib[a]
- if a < 2
- @1
- @( fib[a-1] + fib[a-2] )
-end
-
-# main function
-fun main[]
- sum = 0
- i = 0
- while (i < 10)
- sum = sum + fib[i = i + 1]
- end
- @sum
-end
-
-#------------------------------------------------- alex
-
-0 : "fib"
-1 : "a"
-
-<fun> <identifier,0> <[> <identifier,1> <]> <nl>
-<tab> <if> <identifier,1> <operator,lessthan> <number,2> <nl>
-<tab> <tab> <return> <number,1> <nl>
-<tab> <return> <(><identifier,0> <[> <identifier,1> <operator,minus> <number,1> <]> <operator,plus> <identifier,0> <[> <identifier,1> <operator,minus> <number,2> <]> <)> <nl>
-<end>
-
-...
-
-
-#------------------------------------------------- michael
-
-PROGRAM
-|
-+- FUNCTION
-| + <fun> <identifier,0> <[> <identifier,1> <]> STATEMENT <end>
-| + <if> EXPRESSION STATEMENT <end>
-| + EXPRESSION OPERATOR EXPRESSION + ....
-| + <identifier,1> + <operator,lessthan> +<number,2>
-+- FUNCTION
-...
-
-#------------------------------------------------- nutz
-
-
-zwischencode zeug mit annotiertem baum
-3-Adress-Code
-
-#-------------------------------------------------- jana
-
-
-maschinencode / endprodukt