summaryrefslogtreecommitdiff
path: root/doc/tutorial/HelloIta.gf
diff options
context:
space:
mode:
authoraarne <aarne@cs.chalmers.se>2007-08-14 14:09:25 +0000
committeraarne <aarne@cs.chalmers.se>2007-08-14 14:09:25 +0000
commit76c14c4a2cc5138dc8bc9457d684d3f2f5e799f7 (patch)
treeebc873d420387f88030a88aef778f6367eb4bb9d /doc/tutorial/HelloIta.gf
parentbc1c5a6a094d1307a69fd78cda7e06db002ca795 (diff)
Hello grammars in tutorial
Diffstat (limited to 'doc/tutorial/HelloIta.gf')
-rw-r--r--doc/tutorial/HelloIta.gf10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/tutorial/HelloIta.gf b/doc/tutorial/HelloIta.gf
new file mode 100644
index 000000000..f1465a867
--- /dev/null
+++ b/doc/tutorial/HelloIta.gf
@@ -0,0 +1,10 @@
+concrete HelloIta of Hello = {
+
+ lincat Greeting, Recipient = {s : Str} ;
+
+ lin
+ Hello rec = {s = "ciao" ++ rec.s} ;
+ World = {s = "mondo"} ;
+ Mum = {s = "mamma"} ;
+ Friends = {s = "amici"} ;
+} \ No newline at end of file