Re: Grammar doesn't seem to match any token

2018-09-23 Thread Patrick R. Michaud
I suspect the rule: rule other { . } means that in $input = '~i << to match (although will also end up matching the space after the "i" in the text string, since white spaces are no longer significant). Or try just changing the rule to be a token and leave the others as rules. Ph

Re: Grammar doesn't seem to match any token

2018-09-23 Thread yary
Let's see. If you have my $input = '~i o<<<', then matches. 'rule' turns on :sigspace. If you use 'token' instead of 'rule' then matches. I don't quite have the full picture of what's happening. -y On Sun, Sep 23, 2018 at 7:07 PM, Mark Carter wrote: > My grammar doesn't seem to match the

Grammar doesn't seem to match any token

2018-09-23 Thread Mark Carter
My grammar doesn't seem to match the 'other' rule. What's wrong with it? grammar Weave {     token TOP {  * }     rule el {  | |   }     rule lt { '<'  }     rule tilde { '~' \S+ }     rule other { .  } } class Weaver {     has Str $.outstr;     method TOP   ($/)

Announce: Rakudo Perl 6 compiler, Release #126 (2018.09)

2018-09-23 Thread Aleks-Daniel Jakimenko-Aleksejev
On behalf of the Rakudo development team, I’m very happy to announce the September 2018 release of Rakudo Perl 6 #126. Rakudo is an implementation of Perl 6 on the Moar Virtual Machine[^1]. This release implements the 6.c version of the Perl 6 specifications. It includes bugfixes and optimizations