mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-03 00:02:50 -06:00
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.
This commit is contained in:
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user