summaryrefslogtreecommitdiffstats
path: root/doc/praes2/main.vrb
diff options
context:
space:
mode:
authorAndreas Nüßlein <nutz@unfoog.de>2009-07-06 22:18:59 +0200
committerAndreas Nüßlein <nutz@unfoog.de>2009-07-06 22:18:59 +0200
commit4c8825db2147d7953ffbc564d8307cd4eec00d8d (patch)
tree5c6501bdf8cf617f57309c5adcb9154c8aafdffc /doc/praes2/main.vrb
parenteeb8514dbbe0308ccc6b00247439d20ffa702e0e (diff)
downloadswppy-4c8825db2147d7953ffbc564d8307cd4eec00d8d.tar.gz
swppy-4c8825db2147d7953ffbc564d8307cd4eec00d8d.tar.xz
swppy-4c8825db2147d7953ffbc564d8307cd4eec00d8d.zip
praesentation -> doc/praes2
Diffstat (limited to 'doc/praes2/main.vrb')
-rw-r--r--doc/praes2/main.vrb18
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/praes2/main.vrb b/doc/praes2/main.vrb
new file mode 100644
index 0000000..fc60849
--- /dev/null
+++ b/doc/praes2/main.vrb
@@ -0,0 +1,18 @@
+\frametitle {Gruppe: Quellsprache (Beispiel)}\begin {verbatim}
+fun fib[a]
+ if a < 2
+ @1
+ end
+ @(call fib[a-1] + call fib[a-2])
+end
+
+fun main[]
+ sum = 0
+ i = 1
+ while i <= 10
+ sum = sum + call fib[i]
+ i = i + 1
+ end
+ @sum
+end
+\end{verbatim}