in reply to Re: Can I get some rules help with PARSE::RECDESCENT
in thread Can I get some rules help with PARSE::RECDESCENT
What is the '|' supposed to be an alternative of, the operand rule parenthesized expression?
A rule can have alternatives, e.g. rule_name: alt1 | alt2, and you can insert an action in the middle of a rule:
rule_name: alt1 {action} | alt2
And, you can add whatever whitespace you want:
rule_name: alt1 {action} | alt2
And you can add an action at the end of a rule:
rule_name: alt1 {action} | alt2 {action}
|
---|