Re: Grammar doesn't seem to match any token

2018-09-24 Thread Brad Gilbert
I recommend to default to using `token` rather than `rule` or `regex`. If you need backtracking, use `regex` If you have a lot of parts that match whitespace use `rule` (generally used for combining other tokens.) On Sun, Sep 23, 2018 at 7:13 PM Patrick R. Michaud wrote: > > I suspect the rule:

Re: Grammar doesn't seem to match any token

2018-09-24 Thread Ralph Mellor
Do you use Grammar::Tracer and especially Grammar::Debugger? I'd say a TOP rule is... don't leave TOP without them. -- raiph

Re: extending built-in classes

2018-09-24 Thread Joseph Brenner
Larry Wall wrote: > Joseph Brenner wrote: >> Sounds good, thanks. > Well, yes, *sounds* good. :-) > Monkey patching is allowed but discouraged in Perl 6, because Ruby. But I *like* being evil. But as I was trying to make clear, it's not something I'm planning on using in production (unlik

Re: extending built-in classes

2018-09-24 Thread Brandon Allbery
There's a certain aspect of "there is nothing so permanent as a temporary hack" here. On Tue, Sep 25, 2018 at 12:19 AM Joseph Brenner wrote: > Larry Wall wrote: > > > Joseph Brenner wrote: > >> Sounds good, thanks. > > > Well, yes, *sounds* good. :-) > > Monkey patching is allowed but disc

Re: extending built-in classes

2018-09-24 Thread Joseph Brenner
Thanks, yes that's one of the first approaches I looked at, but there's still that extra "does" step before you can say $x.tellall; On Sat, Sep 22, 2018 at 2:39 PM, Curt Tilmes wrote: > On Sat, Sep 22, 2018 at 5:30 PM Larry Wall wrote: > >> On Sat, Sep 22, 2018 at 11:40:13AM -0700, Joseph Bre