forked from GitHub/gf-core
making TryPol compile
This commit is contained in:
@@ -54,7 +54,7 @@ langsCoding = [
|
|||||||
langs = map fst langsCoding
|
langs = map fst langsCoding
|
||||||
|
|
||||||
-- languagues for which to compile Lang
|
-- languagues for which to compile Lang
|
||||||
langsLang = langs `except` ["Pol","Tur"]
|
langsLang = langs `except` ["Tur"]
|
||||||
|
|
||||||
-- languages for which to compile Try
|
-- languages for which to compile Try
|
||||||
langsAPI = langsLang `except` ["Ara","Bul","Hin","Ina","Lat","Rus","Tha"]
|
langsAPI = langsLang `except` ["Ara","Bul","Hin","Ina","Lat","Rus","Tha"]
|
||||||
|
|||||||
5
lib/src/api/SymbolicPol.gf
Normal file
5
lib/src/api/SymbolicPol.gf
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
--# -path=.:present
|
||||||
|
|
||||||
|
resource SymbolicPol = Symbolic with
|
||||||
|
(Symbol = SymbolPol),
|
||||||
|
(Grammar = GrammarPol) ;
|
||||||
@@ -3,10 +3,10 @@
|
|||||||
resource TryPol = SyntaxPol, LexiconPol, ParadigmsPol - [mkAdv] **
|
resource TryPol = SyntaxPol, LexiconPol, ParadigmsPol - [mkAdv] **
|
||||||
open (P = ParadigmsPol) in {
|
open (P = ParadigmsPol) in {
|
||||||
|
|
||||||
oper
|
--oper
|
||||||
|
|
||||||
mkAdv = overload SyntaxPol {
|
-- mkAdv = overload SyntaxPol {
|
||||||
mkAdv : Str -> Adv = P.mkAdv ;
|
-- mkAdv : Str -> Adv = P.mkAdv ;
|
||||||
} ;
|
-- } ;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ concrete GrammarPol of Grammar =
|
|||||||
RelativePol,
|
RelativePol,
|
||||||
ConjunctionPol,
|
ConjunctionPol,
|
||||||
PhrasePol,
|
PhrasePol,
|
||||||
TextPol,
|
TextX - [CAdv],
|
||||||
StructuralPol,
|
StructuralPol,
|
||||||
IdiomPol
|
IdiomPol
|
||||||
** { flags startcat = Phr ; unlexer = text ; lexer = text ;} ;
|
** { flags startcat = Phr ; unlexer = text ; lexer = text ;} ;
|
||||||
|
|||||||
@@ -1,9 +0,0 @@
|
|||||||
concrete TextPol of Text = {
|
|
||||||
|
|
||||||
lin
|
|
||||||
TEmpty = {s = []} ;
|
|
||||||
TFullStop x xs = {s = x.s ++ "." ++ xs.s} ;
|
|
||||||
TQuestMark x xs = {s = x.s ++ "?" ++ xs.s} ;
|
|
||||||
TExclMark x xs = {s = x.s ++ "!" ++ xs.s} ;
|
|
||||||
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user