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

Re: Re: Perl6: too bad non-greediness is not made the default

by stefp (Vicar)
on Jul 06, 2002 at 15:46 UTC ( #179842=note: print w/ replies, xml ) Need Help??


in reply to Re: Perl6: too bad non-greediness is not made the default
in thread Parsing with Perl 6

I guess TIMTOWTDI. It is a question of emphasis, yours is on performance, mine is on readability and incremental building.

If I combine my idea of (ab)?using .* with the concept that one can hack perl6 to make one's own language, I would define a modifier that would turn consecutive non breaking line spaces into an implicit .*? subregex with ? having its traditional meaning of non greediness. I am not sure it would be a so good idea though. Will be a good exercice anyway.

-- stefp -- check out TeXmacs wiki


Comment on Re: Re: Perl6: too bad non-greediness is not made the default
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (18)
As of 2014-04-16 17:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (433 votes), past polls