mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-18 09:19:32 -06:00
The -path flags in the RGL modules compiled during 'cabal build' now refer directly to the needed source directories. References 'alltenses' and 'present' (and the nonexistent directory 'mathematical') have been removed. This allows the files to be compiled in any order (e.g. in parallel). In addition, you can do things like gf -retain lib/src/api/TrySwe.gf without compiling/installing any other RGL modules first, and without setting any other path flags or environment variables.
51 lines
1.2 KiB
Plaintext
51 lines
1.2 KiB
Plaintext
--# -path=.:../abstract:../common:../prelude
|
|
|
|
concrete SymbolPnb of Symbol = CatPnb ** open Prelude, ResPnb in {
|
|
|
|
flags coding = utf8;
|
|
|
|
lin
|
|
-- SymbPN i = {s = \\_ => i.s ; g = Masc} ;
|
|
SymbPN i = {s = addGenitiveS i.s ; g = Masc} ;
|
|
IntPN i = {s = addGenitiveS i.s ; g = Masc} ;
|
|
FloatPN i = {s = addGenitiveS i.s ; g = Masc} ;
|
|
NumPN i = {s = \\_ =>i.s ; g = Masc} ;
|
|
CNIntNP cn i = {
|
|
s = \\c => cn.s ! Sg ! Dir ++ i.s ;
|
|
a = agrP3 cn.g Sg ;
|
|
isPron = False
|
|
} ;
|
|
CNSymbNP det cn xs = {
|
|
s = \\c => det.s!Sg!Masc ++ cn.s ! det.n ! Dir ++ xs.s ;
|
|
a = agrP3 cn.g det.n;
|
|
isPron = False
|
|
} ;
|
|
CNNumNP cn i = {
|
|
s = \\c => cn.s ! Sg ! Dir ++ i.s ;
|
|
a = agrP3 cn.g Sg;
|
|
isPron = False
|
|
} ;
|
|
|
|
SymbS sy = sy ;
|
|
SymbNum sy = { s = sy.s ; n = Pl } ;
|
|
SymbOrd sy = { s = sy.s ++ "واں" ; n = Pl} ;
|
|
|
|
lincat
|
|
|
|
Symb, [Symb] = SS ;
|
|
|
|
lin
|
|
MkSymb s = s ;
|
|
|
|
BaseSymb = infixSS "تے" ;
|
|
ConsSymb = infixSS "" ;
|
|
|
|
oper
|
|
-- Note: this results in a space before 's, but there's
|
|
-- not mauch we can do about that.
|
|
addGenitiveS : Str -> Case => Str = \s ->
|
|
table {_ => s ++ "دا" } ;
|
|
|
|
|
|
}
|