mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 11:42:49 -06:00
made AllLat compilable and fixed a bug in first declension
This commit is contained in:
@@ -54,10 +54,10 @@ langsCoding = [
|
|||||||
langs = map fst langsCoding
|
langs = map fst langsCoding
|
||||||
|
|
||||||
-- languagues for which to compile Lang
|
-- languagues for which to compile Lang
|
||||||
langsLang = langs `except` ["Ara","Lat","Pol","Ron","Tur"]
|
langsLang = langs `except` ["Ara","Pol","Ron","Tur"]
|
||||||
|
|
||||||
-- languages for which to compile Try
|
-- languages for which to compile Try
|
||||||
langsAPI = langsLang `except` ["Bul","Hin","Ina","Rus","Tha"]
|
langsAPI = langsLang `except` ["Bul","Hin","Ina","Lat","Rus","Tha"]
|
||||||
|
|
||||||
-- languages for which to compile minimal Syntax
|
-- languages for which to compile minimal Syntax
|
||||||
langsMinimal = langs `only` ["Eng","Bul","Ger","Ita"]
|
langsMinimal = langs `only` ["Eng","Bul","Ger","Ita"]
|
||||||
|
|||||||
@@ -1,9 +1,6 @@
|
|||||||
----# -path=.:../abstract:../common:prelude
|
--# -path=.:../abstract:../common:prelude
|
||||||
--
|
|
||||||
--concrete AllLat of AllLatAbs =
|
concrete AllLat of AllLatAbs =
|
||||||
-- LangLat,
|
LangLat
|
||||||
-- IrregLat-[
|
|
||||||
-- blow_V,burn_V,come_V,dig_V,fall_V,fly_V,freeze_V,go_V,lie_V,run_V,
|
|
||||||
-- sew_V,sing_V,sit_V,sleep_V,spit_V,stand_V,swell_V,swim_V,think_V],
|
|
||||||
-- ExtraLat
|
-- ExtraLat
|
||||||
-- ** {} ;
|
** {} ;
|
||||||
|
|||||||
1
next-lib/src/latin/AllLatAbs.gf
Normal file
1
next-lib/src/latin/AllLatAbs.gf
Normal file
@@ -0,0 +1 @@
|
|||||||
|
abstract AllLatAbs = Lang ;
|
||||||
@@ -1,53 +1,3 @@
|
|||||||
--concrete ExtraLat of ExtraLatAbs = CatLat **
|
concrete ExtraLat of ExtraLatAbs = CatLat **
|
||||||
-- open ResLat, Coordination, Prelude in {
|
open ResLat, Coordination, Prelude in {
|
||||||
--
|
}
|
||||||
-- lin
|
|
||||||
-- GenNP np = {s,sp = \\_,_ => np.s ! Gen} ;
|
|
||||||
-- ComplBareVS v s = insertObj (\\_ => s.s) (predV v) ;
|
|
||||||
--
|
|
||||||
-- StrandRelSlash rp slash = {
|
|
||||||
-- s = \\t,a,p,ag =>
|
|
||||||
-- rp.s ! RC (fromAgr ag).g Acc ++ slash.s ! t ! a ! p ! ODir ++ slash.c2 ;
|
|
||||||
-- c = Acc
|
|
||||||
-- } ;
|
|
||||||
-- EmptyRelSlash slash = {
|
|
||||||
-- s = \\t,a,p,_ => slash.s ! t ! a ! p ! ODir ++ slash.c2 ;
|
|
||||||
-- c = Acc
|
|
||||||
-- } ;
|
|
||||||
--
|
|
||||||
-- StrandQuestSlash ip slash =
|
|
||||||
-- {s = \\t,a,b,q =>
|
|
||||||
-- (mkQuestion (ss (ip.s ! Acc)) slash).s ! t ! a ! b ! q ++ slash.c2
|
|
||||||
-- };
|
|
||||||
--
|
|
||||||
-- lincat
|
|
||||||
-- VPI = {s : VPIForm => Agr => Str} ;
|
|
||||||
-- [VPI] = {s1,s2 : VPIForm => Agr => Str} ;
|
|
||||||
--
|
|
||||||
-- lin
|
|
||||||
-- BaseVPI = twoTable2 VPIForm Agr ;
|
|
||||||
-- ConsVPI = consrTable2 VPIForm Agr comma ;
|
|
||||||
--
|
|
||||||
-- MkVPI vp = {
|
|
||||||
-- s = \\v,a => vp.ad ++ vp.inf ++ vp.s2 ! a
|
|
||||||
-- } ;
|
|
||||||
-- ConjVPI = conjunctDistrTable2 VPIForm Agr ;
|
|
||||||
-- ComplVPIVV vv vpi =
|
|
||||||
-- insertObj (\\a => (if_then_Str vv.isAux [] "to") ++ vpi.s ! VPIInf ! a) (predVV vv) ;
|
|
||||||
--
|
|
||||||
-- UncNegCl t a cl = {s = t.s ++ a.s ++ cl.s ! t.t ! a.a ! neg ! ODir} ;
|
|
||||||
-- UncNegQCl t a cl = {s = \\q => t.s ++ a.s ++ cl.s ! t.t ! a.a ! neg !q} ;
|
|
||||||
-- UncNegRCl t a cl = {
|
|
||||||
-- s = \\r => t.s ++ a.s ++ cl.s ! t.t ! a.a ! neg ! r ;
|
|
||||||
-- c = cl.c
|
|
||||||
-- } ;
|
|
||||||
-- UncNegImpSg imp = {s = imp.s ! neg ! ImpF Sg False} ;
|
|
||||||
-- UncNegImpPl imp = {s = imp.s ! neg ! ImpF Pl False} ;
|
|
||||||
--
|
|
||||||
-- CompoundCN a b = {s = \\n,c => a.s ! Sg ! Nom ++ b.s ! n ! c ; g = b.g} ;
|
|
||||||
--
|
|
||||||
--
|
|
||||||
-- oper
|
|
||||||
-- neg = CNeg False ;
|
|
||||||
--
|
|
||||||
--}
|
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ oper
|
|||||||
|
|
||||||
noun1 : Str -> Noun = \mensa ->
|
noun1 : Str -> Noun = \mensa ->
|
||||||
let
|
let
|
||||||
mensae = mensa + "a" ;
|
mensae = mensa + "e" ;
|
||||||
mensis = init mensa + "is" ;
|
mensis = init mensa + "is" ;
|
||||||
in
|
in
|
||||||
mkNoun
|
mkNoun
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
--concrete SymbolLat of Symbol = CatLat ** open Prelude, ResLat in {
|
--# -path=.:abstract:common
|
||||||
|
|
||||||
|
concrete SymbolLat of Symbol = CatLat ** open Prelude, ResLat in {
|
||||||
--
|
--
|
||||||
--lin
|
--lin
|
||||||
-- SymbPN i = {s = \\c => i.s ; g = Neutr} ; --- c
|
-- SymbPN i = {s = \\c => i.s ; g = Neutr} ; --- c
|
||||||
@@ -34,4 +36,4 @@
|
|||||||
-- BaseSymb = infixSS "and" ;
|
-- BaseSymb = infixSS "and" ;
|
||||||
-- ConsSymb = infixSS "," ;
|
-- ConsSymb = infixSS "," ;
|
||||||
--
|
--
|
||||||
--}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user