Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Parse::RecDescent grammar definition

by Anonymous Monk
on Mar 21, 2011 at 14:39 UTC ( #894529=note: print w/ replies, xml ) Need Help??


in reply to Parse::RecDescent grammar definition

FYI, I found it very useful to define a module of utility subroutines to do various things to the result variables (for instance) which I "use" within the grammar (generated...) code. If I always want a list, for example, but the parser might in some cases hand me undef or a scalar, an appropriate utility sub can easily make that a non-issue and always do the right thing. "Using" them provides consistency and avoids repetition of source code.


Comment on Re: Parse::RecDescent grammar definition

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (10)
As of 2015-07-30 11:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (271 votes), past polls