Hi Aureliano, It's a good question. The short answer is I haven't had
any memory problems with the toy examples so far, but I haven't scaled
up the regex to know how it behaves when testing for hundreds (or
thousands) of matches. I suppose there might be some way to restrict
array values to Int-onl
If you do make this a grammar, I think there's more than one way to
have " {@a.push($/.pos)}/" fire after every match, and not repeat that
code snippit on each rule... keep that in mind as a goal...
-y
On Tue, Aug 20, 2019 at 7:13 AM William Michels via perl6-users
wrote:
>
> Thanks to Brad Gilb
Thanks to Brad Gilbert's code contribution in this thread, I re-wrote
a small snippet of his code (code that incrementally checks a series
of regex matches), to have it return the last position of each match.
Testing with three 'matches' and one 'willnotmatch' returns three
positional values, as ex
On Sun, 18 Aug 2019 13:45:27 -0300
Aureliano Guedes wrote:
> Even being another language, Perl6 should be inheriting Perl5's
> regexes or even improving it not making it uglier and harder.
>
> Or I'm seeing how to use it in an easy way. Also, dunno if there is
> some GOOD documentation to Perl6