mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-11 05:49:31 -06:00
38 lines
770 B
Plaintext
38 lines
770 B
Plaintext
concrete SymbolEng of Symbol = CatEng ** open Prelude, ResEng in {
|
|
|
|
lin
|
|
SymbPN i = {s = \\c => i.s ; a = agrP3 Sg} ; --- c
|
|
IntPN i = {s = \\c => i.s ; a = agrP3 Sg} ; --- c
|
|
FloatPN i = {s = \\c => i.s ; a = agrP3 Sg} ; --- c
|
|
NumPN i = {s = \\c => i.s ; a = agrP3 Sg} ; --- c
|
|
CNIntNP cn i = {
|
|
s = \\c => (cn.s ! Sg ! Nom ++ i.s) ;
|
|
a = agrP3 Sg
|
|
} ;
|
|
CNSymbNP det cn xs = {
|
|
s = \\c => det.s ++ cn.s ! det.n ! c ++ xs.s ;
|
|
a = agrP3 det.n
|
|
} ;
|
|
CNNumNP cn i = {
|
|
s = \\c => (cn.s ! Sg ! Nom ++ i.s) ;
|
|
a = agrP3 Sg
|
|
} ;
|
|
|
|
SymbS sy = sy ;
|
|
|
|
SymbNum sy = {s = sy.s ; n = Pl} ;
|
|
SymbOrd sy = {s = sy.s ++ "th"} ;
|
|
|
|
lincat
|
|
|
|
Symb, [Symb] = SS ;
|
|
|
|
lin
|
|
|
|
MkSymb s = s ;
|
|
|
|
BaseSymb = infixSS "and" ;
|
|
ConsSymb = infixSS "," ;
|
|
|
|
}
|