mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-03 08:12:51 -06:00
Add Phrasebook to testsuite. Move grammars into subfolders. Add run-bench script.
This commit is contained in:
28
testsuite/lpgf/walking/WalkingGer.gf
Normal file
28
testsuite/lpgf/walking/WalkingGer.gf
Normal file
@@ -0,0 +1,28 @@
|
||||
-- From Angelov, Bringert, Ranta (2009)
|
||||
concrete WalkingGer of Walking = {
|
||||
lincat
|
||||
S = Str ;
|
||||
NP = {s : Str; n : Number; p : Person} ;
|
||||
VP = {s : Number => Person => Str} ;
|
||||
lin
|
||||
And s1 s2 = s1 ++ "und" ++ s2 ;
|
||||
Pred np vp = np.s ++ vp.s ! np.n ! np.p ;
|
||||
John = {s = "John"; n = Sg ; p = P3} ;
|
||||
We = {s = "wir"; n = Pl; p = P1} ;
|
||||
Walk = {s = table {
|
||||
Sg => table {
|
||||
P1 => "gehe" ;
|
||||
P2 => "gehst" ;
|
||||
P3 => "geht"
|
||||
} ;
|
||||
Pl => table {
|
||||
P1 => "gehen" ;
|
||||
P2 => "geht" ;
|
||||
P3 => "gehen"
|
||||
}
|
||||
}
|
||||
} ;
|
||||
param
|
||||
Number = Sg | Pl ;
|
||||
Person = P1 | P2 | P3 ;
|
||||
}
|
||||
Reference in New Issue
Block a user