question on directive <commit> and subrules
[email protected] (Dave McD)
| Newsgroups | perl.recdescent |
|---|---|
| Message-ID | <[email protected]> |
Sorry for so many posts, but I'm deep into this cool
pkg of yours and I think others in this list may
benefit from my questions! :) This question relates
to using <commit> in a rule and the conditional
<error?> <reject> directives to make a rule fail IF it
had committed.
Ques: When a subrule in a rule that has a "zero or
more" repetition specifier (ie. ? or s?) has a
<commit> directive in its production followed by the
conditional <error?> <reject> production, if that
subrule's production becomes committed, does that
error cause the rule containing the subrule to fail
also? It should right, if we have committed? It does
not seem to work.
Here is what I mean:
myrule: 'stuff' mysubrule(?)
mysubrule: ID <commit> '[' ']'
| <error?> <reject>
If the 1st production of mysubrule has committed, then
myrule should fail. It doesn't seem to. If this is
not a bug, how do I get this behavior?
Dave Mc
__________________________________________________
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com