Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: Knowing when a code string contains code that will be executed at compile-time/end?

by haukex (Archbishop)
on Aug 15, 2020 at 16:27 UTC ( [id://11120784]=note: print w/replies, xml ) Need Help??


in reply to Re: Knowing when a code string contains code that will be executed at compile-time/end?
in thread Knowing when a code string contains code that will be executed at compile-time/end?

Although PPR can be used to match Perl code or parts of Perl code (like say if you're trying to implement your own keyword and need a way to express the grammar for it), it is not a real parser, that is, it doesn't really build a syntax tree that can then be inspected. In that respect, PPI is better.

  • Comment on Re^2: Knowing when a code string contains code that will be executed at compile-time/end?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (3)
As of 2024-04-24 03:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found