mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-22 11:19:32 -06:00
lrec tutorial examples
This commit is contained in:
17
examples/lrec-tutorial/ZeroLat.gf
Normal file
17
examples/lrec-tutorial/ZeroLat.gf
Normal file
@@ -0,0 +1,17 @@
|
||||
concrete ZeroLat of Zero = {
|
||||
lincat
|
||||
S, VP, V2 = Str ;
|
||||
NP = Case => Str ;
|
||||
lin
|
||||
Pred np vp = np ! Nom ++ vp ;
|
||||
Compl v2 np = np ! Acc ++ v2 ;
|
||||
John = table {Nom => "Ioannes" ; Acc => "Ioannem"} ;
|
||||
Mary = table {Nom => "Maria" ; Acc => "Mariam"} ;
|
||||
Love = "amat" ;
|
||||
param
|
||||
Case = Nom | Acc ;
|
||||
}
|
||||
|
||||
--.
|
||||
-- illustrates: parameters, word order
|
||||
-- > p -lang=ZeroEng "John loves Mary" | aw -view=open -format=png
|
||||
Reference in New Issue
Block a user