Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: Can I get some rules help with PARSE::RECDESCENT

by 7stud (Deacon)
on Mar 10, 2018 at 20:16 UTC ( [id://1210634]=note: print w/replies, xml ) Need Help??


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}

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1210634]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-03-28 10:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found