[EMAIL PROTECTED] (Raptor) writes:

> in a rule...
>
> ruleX : blah1 | blah2 | blah3
>
> $item[1] will match whatever of the subrules succeed, isn't it ?

A snippet of code is associated to *one* subrule. The trick is to use
parenthesis.

ruleX : ( blah1 | blah2 | blah3 ) {print "Got $item[1]\n";} 

Cheers

-- 
[EMAIL PROTECTED]

Reply via email to