From a335b29c0a85ea81ee1017f18dd6f2595d2a5227 Mon Sep 17 00:00:00 2001 From: bringert Date: Thu, 21 Dec 2006 16:48:46 +0000 Subject: Meta variables are now treated as functions with name ? in SISR, VoiceXML and JavaScript linearization. VoiceXML now returns the partial result when update() is false. --- src/GF/Speech/TransformCFG.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/GF/Speech/TransformCFG.hs') diff --git a/src/GF/Speech/TransformCFG.hs b/src/GF/Speech/TransformCFG.hs index 796382b7d..31017c61f 100644 --- a/src/GF/Speech/TransformCFG.hs +++ b/src/GF/Speech/TransformCFG.hs @@ -54,6 +54,7 @@ data CFTerm | CFRes Int | CFVar Int | CFConst String + | CFMeta deriving (Eq,Show) type Cat_ = String @@ -69,7 +70,7 @@ cfgToCFRules cfg = where symb = mapSymbol catToString id catToString = prt nameToTerm (Name f prs) = CFObj f (map profileToTerm prs) - profileToTerm (Unify []) = CFConst "?" + profileToTerm (Unify []) = CFMeta profileToTerm (Unify xs) = CFRes (last xs) -- FIXME: unify profileToTerm (Constant f) = CFConst (maybe "?" prIdent (forestName f)) -- cgit v1.2.3