mirror of
https://github.com/GrammaticalFramework/comp-syntax-gu-mlt.git
synced 2026-04-08 21:29:32 -06:00
lecture 1 examples
This commit is contained in:
13
lectures/lecture01/nano.cf
Normal file
13
lectures/lecture01/nano.cf
Normal file
@@ -0,0 +1,13 @@
|
||||
S ::= NP VP ;
|
||||
VP ::= V NP ;
|
||||
NP ::= Det CN ;
|
||||
CN ::= A CN ;
|
||||
CN ::= N ;
|
||||
NP ::= Pron ;
|
||||
|
||||
Det ::= "the" ;
|
||||
A ::= "black" ;
|
||||
N ::= "cat" ;
|
||||
V ::= "sees" ;
|
||||
Pron ::= "us" ;
|
||||
|
||||
19
lectures/lecture01/nanopar.cf
Normal file
19
lectures/lecture01/nanopar.cf
Normal file
@@ -0,0 +1,19 @@
|
||||
S ::= NP_nom_sg VP_sg ;
|
||||
S ::= NP_nom_pl VP_pl ;
|
||||
VP_sg ::= V_sg NP_acc ;
|
||||
VP_pl ::= V_pl NP_acc ;
|
||||
NP_nom_sg ::= Det CN ;
|
||||
NP_acc ::= Det CN ;
|
||||
CN ::= A CN ;
|
||||
CN ::= N ;
|
||||
NP_nom_pl ::= Pron_nom_pl ;
|
||||
NP_acc ::= Pron_acc ;
|
||||
|
||||
Det ::= "the" ;
|
||||
A ::= "black" ;
|
||||
N ::= "cat" ;
|
||||
V_sg ::= "sees" ;
|
||||
V_pl ::= "see" ;
|
||||
Pron_nom_pl ::= "we" ;
|
||||
Pron_acc ::= "us" ;
|
||||
|
||||
Reference in New Issue
Block a user