forked from GitHub/comp-syntax-gu-mlt
last year's lecture material moved to directory 2025
This commit is contained in:
30
lectures/2025/lecture-02/Intro.gf
Normal file
30
lectures/2025/lecture-02/Intro.gf
Normal file
@@ -0,0 +1,30 @@
|
||||
abstract Intro = {
|
||||
|
||||
cat
|
||||
S ;
|
||||
NP ;
|
||||
VP ;
|
||||
CN ;
|
||||
AP ;
|
||||
Det ;
|
||||
Pron ;
|
||||
N ;
|
||||
A ;
|
||||
V2 ;
|
||||
|
||||
fun
|
||||
PredVP : NP -> VP -> S ;
|
||||
ComplV2 : V2 -> NP -> VP ;
|
||||
DetCN : Det -> CN -> NP ;
|
||||
AdjCN : AP -> CN -> CN ;
|
||||
UseN : N -> CN ;
|
||||
UseA : A -> AP ;
|
||||
UsePron : Pron -> NP ;
|
||||
|
||||
the_Det : Det ;
|
||||
black_A : A ;
|
||||
cat_N : N ;
|
||||
see_V2 : V2 ;
|
||||
we_Pron : Pron ;
|
||||
|
||||
}
|
||||
40
lectures/2025/lecture-02/IntroEng.gf
Normal file
40
lectures/2025/lecture-02/IntroEng.gf
Normal file
@@ -0,0 +1,40 @@
|
||||
concrete IntroEng of Intro = {
|
||||
|
||||
lincat
|
||||
S = Str ;
|
||||
NP = {s : Case => Str ; a : Agr} ;
|
||||
VP = Agr => Str ;
|
||||
CN = Str ;
|
||||
AP = Str ;
|
||||
Det = Str ;
|
||||
Pron = {s : Case => Str ; a : Agr} ;
|
||||
N = Str ;
|
||||
A = Str ;
|
||||
V2 = Agr => Str ;
|
||||
|
||||
lin
|
||||
PredVP np vp = np.s ! Nom ++ vp ! np.a ;
|
||||
ComplV2 v2 np = table {a => v2 ! a ++ np.s ! Acc} ;
|
||||
DetCN det cn = {
|
||||
s = table {_ => det ++ cn} ;
|
||||
a = SgP3
|
||||
} ;
|
||||
AdjCN ap cn = ap ++ cn ;
|
||||
UseN n = n ;
|
||||
UseA a = a ;
|
||||
UsePron pron = pron ;
|
||||
|
||||
the_Det = "the" ;
|
||||
black_A = "black" ;
|
||||
cat_N = "cat" ;
|
||||
see_V2 = table {SgP3 => "sees" ; Other => "see"} ;
|
||||
we_Pron = {
|
||||
s = table {Nom => "we" ; Acc => "us"} ;
|
||||
a = Other
|
||||
} ;
|
||||
|
||||
param
|
||||
Case = Nom | Acc ;
|
||||
Agr = SgP3 | Other ;
|
||||
|
||||
}
|
||||
30
lectures/2025/lecture-02/IntroIta.gf
Normal file
30
lectures/2025/lecture-02/IntroIta.gf
Normal file
@@ -0,0 +1,30 @@
|
||||
concrete IntroIta of Intro = {
|
||||
|
||||
lincat
|
||||
S = Str ;
|
||||
NP = Str ;
|
||||
VP = Str ;
|
||||
CN = Str ;
|
||||
AP = Str ;
|
||||
Det = Str ;
|
||||
Pron = Str ;
|
||||
N = Str ;
|
||||
A = Str ;
|
||||
V2 = Str ;
|
||||
|
||||
lin
|
||||
PredVP np vp = np ++ vp ;
|
||||
ComplV2 v2 np = np ++ v2 ;
|
||||
DetCN det cn = det ++ cn ;
|
||||
AdjCN ap cn = cn ++ ap ;
|
||||
UseN n = n ;
|
||||
UseA a = a ;
|
||||
UsePron pron = pron ;
|
||||
|
||||
the_Det = "il" ;
|
||||
black_A = "nero" ;
|
||||
cat_N = "gatto" ;
|
||||
see_V2 = "vede" ;
|
||||
we_Pron = "ci" ;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user