refactored Thai so that it can now be compiled producing BIND tokens instead of spaces, by just changing the definition of ResTha.bIND. This is not to be exploited yet, because it produces consecutive BIND tokens, which are not supported at runtime.

This commit is contained in:
aarne
2015-03-16 14:53:53 +00:00
parent 354b89e588
commit 3c27eea68b
7 changed files with 28 additions and 24 deletions
+5 -5
View File
@@ -1,13 +1,13 @@
concrete PhraseTha of Phrase = CatTha ** open Prelude, ResTha in {
lin
PhrUtt pconj utt voc = {s = pconj.s ++ utt.s ++ voc.s} ;
PhrUtt pconj utt voc = {s = pconj.s ++bIND++ utt.s ++bIND++ voc.s} ;
UttS s = s ;
UttQS qs = {s = qs.s ! QDir} ;
UttImpSg pol imp = {s = pol.s ++ imp.s ! pol.p} ;
UttImpPl pol imp = {s = pol.s ++ imp.s ! pol.p} ;
UttImpPol pol imp = {s = pol.s ++ imp.s ! pol.p} ; --- add politeness here?
UttImpSg pol imp = {s = pol.s ++bIND++ imp.s ! pol.p} ;
UttImpPl pol imp = {s = pol.s ++bIND++ imp.s ! pol.p} ;
UttImpPol pol imp = {s = pol.s ++bIND++ imp.s ! pol.p} ; --- add politeness here?
UttIP ip = ip ;
UttIAdv iadv = iadv ;
@@ -15,7 +15,7 @@ concrete PhraseTha of Phrase = CatTha ** open Prelude, ResTha in {
UttCN cn = cn ;
UttAP ap = ap ;
UttCard x = x ;
UttVP vp = {s = vp.s ! Pos ++ vp.e} ;
UttVP vp = {s = vp.s ! Pos ++bIND++ vp.e} ;
UttAdv adv = adv ;
NoPConj = {s = []} ;