While this is potentially a bit too ambiguous for the parser to do generically, it can be done with a noun type that is designed to handle this situation.
If you're new to custom noun types, the author tutorial has a good writeup: https://wiki.mozilla.org/Labs/Ubiquity/Ubiquity_Source_Tip_Author_Tutorial#Switching:_Writing_your_own_Noun-Types - Blair On 13/02/2009 9:03 AM, [email protected] wrote: > Hi, > > I am designing a command having two arguments and both of them are > single words. Could the parser take advantage of this to avoid using a > direct-object and a modifier but rather two direct-objects ? > > eg. Suppose I have a color type {"red", "green", "blue"}, a fruit type > {"apple", "orange"} (or maybe more generally \w+) and a command eat > I would like to write: > eat blue apple > > instead of something like (using fruit as keyword): > eat blue fruit apple > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "ubiquity-firefox" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/ubiquity-firefox?hl=en -~----------~----~----~----~------~----~------~--~---
