summaryrefslogtreecommitdiff
path: root/demo/rec.ur
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2008-10-21 17:34:20 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2008-10-21 17:34:20 -0400
commitbda701f557d0e9aadd4717dd4fd6a38ac8ceb1eb (patch)
treee4635d5a6f6b89dfa6beb1fcc253363184d2a01e /demo/rec.ur
parentd4e5d7bbce0aac719ac2c6451e0a6bfb675ab641 (diff)
Rec demo
Diffstat (limited to 'demo/rec.ur')
-rw-r--r--demo/rec.ur7
1 files changed, 7 insertions, 0 deletions
diff --git a/demo/rec.ur b/demo/rec.ur
new file mode 100644
index 00000000..a8084462
--- /dev/null
+++ b/demo/rec.ur
@@ -0,0 +1,7 @@
+fun main () = return <xml><body>
+ <a link={other ()}>Go to the other one!</a>
+</body></xml>
+
+and other () = return <xml><body>
+ <a link={main ()}>Return to <tt>main</tt>!</a>
+</body></xml>