In Perl 6.c, regexes/grammars can only parse strings (at the grapheme level).
If you want to parse a Blob or Buf, you have to decode it into a string first
by calling the `.decode` method¹ on it.
Early Perl 6 design documents² suggested support for parsing at the byte or
code-point level, but t
Shorter example:
grammar Flail {
token TOP { 'w' | 'v' }
}
Flail.subparse('vww').say;
# New Ticket Created by Aleks-Daniel Jakimenko-Aleksejev
# Please include the string: [perl #132005]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/Ticket/Display.html?id=132005 >
Command:
perl6 --target=parse -e 'say 25:'
Result:
===SORRY!===
Expe
# New Ticket Created by Aleks-Daniel Jakimenko-Aleksejev
# Please include the string: [perl #132006]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/Ticket/Display.html?id=132006 >
Code:
say now.Instant
Result:
No such method 'Instant' for invocant
This has been fixed by TimToday in April, in one of these commits:
https://gist.github.com/Whateverable/23122ebe34ebeccfdfc3cd04845c54f4
https://gist.github.com/smls/aff6a56c1cfcce5c7779251aee394e42
Tests needed.
On Fri, 30 Dec 2016 03:43:02 -0800, elizabeth wrote:
> Fixed with 696b1f4, tests needed.
>
> The problem could be reduced to:
>
> (my @[1]).iterator.pull-one
>
> Somehow the binding to AT-POS-CONTAINER failed, and I wasn’t able to
> find what exactly was wrong with it. So don’t use AT-POS-CONTA
On Thu, 31 Aug 2017 18:09:31 -0700, b...@abrij.org wrote:
> On Fri, 30 Dec 2016 03:43:02 -0800, elizabeth wrote:
> > Fixed with 696b1f4, tests needed.
> >
> > The problem could be reduced to:
> >
> > (my @[1]).iterator.pull-one
> >
> > Somehow the binding to AT-POS-CONTAINER failed, and I wasn’t ab
# New Ticket Created by "Brian S. Julin"
# Please include the string: [perl #132010]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/Ticket/Display.html?id=132010 >
Please combine RT #124544 #124545 #124546 and #124547 into this bug.
They are autoge
Fixed with 51709e01c0788c466af , tests needed.
> On 31 Aug 2017, at 22:05, Aleks-Daniel Jakimenko-Aleksejev (via RT)
> wrote:
>
> # New Ticket Created by Aleks-Daniel Jakimenko-Aleksejev
> # Please include the string: [perl #132006]
> # in the subject line of all future correspondence about
Fixed with 51709e01c0788c466af , tests needed.
> On 31 Aug 2017, at 22:05, Aleks-Daniel Jakimenko-Aleksejev (via RT)
> wrote:
>
> # New Ticket Created by Aleks-Daniel Jakimenko-Aleksejev
> # Please include the string: [perl #132006]
> # in the subject line of all future correspondence about
10 matches
Mail list logo