Dear all,
I have a switch that you can set to left, middle or right. Works fine like this:
before [;
SetTo:
switch(second){
‘left’:
etc.
Now I want to allow “switch switch to left|middle|right” as well without removing the normal switch function. So I extend the grammar:
Extend only ‘switch’ first * noun ‘to’ topic → Verb_MySwitch;
According to the parser output in “actions” mode it seems to me that no “second” argument is passed to my Verb_MySwitchSub routine:
switch switch to right
[ Action Verb_MySwitch with noun 245 (switch) ]
Question 1: What do I need to do to be able to parse for left|middle|right in my Verb_MySwitchSub routine?
Question 2: Since I do have the desired code in the switch object, I’d intuitively just use <> in the Verb_MySwitchSub routine, but how do I pass on the left|middle|right text?
Thanks!!!