1
0
forked from GitHub/gf-core

extended mini resource grammar in examples, with Eng, Ita, Cmn (Mandarin Chinese by Jolene)

This commit is contained in:
aarne
2012-08-24 06:30:10 +00:00
parent d217f20c60
commit 9506a01aab
25 changed files with 2668 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
resource ParadigmsCmn = GrammarCmn [N,A,V] **
open ResCmn, GrammarCmn, Prelude in {
flags coding=utf8;
oper
mkN : (man : Str) -> Str -> N
= \n,c -> lin N (regNoun n c) ;
mkPN : (john : Str) -> Number -> PN
= \s,n -> lin PN (PropN s n) ;
mkA : (small : Str) -> Bool -> A
= \a,b -> lin A (mkAdj a b) ;
mkV = overload {
mkV : (walk : Str) -> V
= \walk -> lin V (regVerb walk) ;
mkV : (arrive : Str) -> Str -> Str -> Str -> Str -> V
= \arrive,pp,ds,dp,ep -> lin V (mkVerb arrive pp ds dp ep) ;
} ;
}