multiple values returned

Hi,

I have the following grammar :


Finalgrammar [
         (Action:a ?Name:n ?Media:m)  {<action $a><contact $n><media $m>}
]


Action [
           call { return ("call")}
           find { return ("find")}
           spell { return ("spell")}
]


Name [
               [john doe (john doe) johny] {return([<contactname "john doe"><contactid "1234">])}
 ]


Media [
               home { return ("home")}
               mobile { return ("mobile")}
               work { return ("work")}
           ]



This grammar works, but i'm unable to access "contactname" and "contactid" :
application.lastresult$[0].interpretation.action returns "call" for example,
application.lastresult$[0].interpretation.contact returns { contactname = "john doe" contactid = "1234" },
but application.lastresult$[0].interpretation.contact.contactname returns "undefined".

How could i do ?

Thanks

Received on Wednesday, 16 October 2002 08:42:04 UTC