forked from GitHub/gf-core
Hello grammars in tutorial
This commit is contained in:
10
doc/tutorial/HelloEng.gf
Normal file
10
doc/tutorial/HelloEng.gf
Normal file
@@ -0,0 +1,10 @@
|
||||
concrete HelloEng of Hello = {
|
||||
|
||||
lincat Greeting, Recipient = {s : Str} ;
|
||||
|
||||
lin
|
||||
Hello rec = {s = "hello" ++ rec.s} ;
|
||||
World = {s = "world"} ;
|
||||
Mum = {s = "mum"} ;
|
||||
Friends = {s = "friends"} ;
|
||||
}
|
||||
Reference in New Issue
Block a user