Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^11: Parser Performance Question (Atomic grouping)

by songmaster (Beadle)
on Oct 20, 2017 at 01:37 UTC ( [id://1201722]=note: print w/replies, xml ) Need Help??


in reply to Re^10: Parser Performance Question (Atomic grouping)
in thread Parser Performance Question

I appreciate reading the conversation you guys had, sorry I wasn't to able to take part. I'm now using a slightly modified version of Eily's regex (proven using the above framework and in my own tests):

our $RXdqs = qr/ " (?> \\. | [^"\\] )* " /x;

Note that all of my $RX... regex variables are used inside other regexes and surrounded on both sides by \s* and various specific characters like parentheses and commas (this is a parser for a formally defined syntax that proceeds through the input text serially, I'm not trying to find $needle inside some giant $haystack). I do have individual tests for these variables now, previously I was only testing the parser at a higher level.

- Andrew

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2024-04-19 11:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found