Re: Fwd: Re: Variables in modules

2017-03-09 Thread Todd Chester
On 03/09/2017 02:22 PM, Theo van den Heuvel wrote: Is this what you are looking for? our $IAm is export; ( $IAm = $?FILE ) ~~ s|.*"/"||; Hi Theo, Almost. I only want the code inside the module (pm) to see it. I don't want it exported. On the other hand, you just taught me h9owto

Fwd: Re: Variables in modules

2017-03-09 Thread Theo van den Heuvel
Is this what you are looking for? our $IAm is export; ( $IAm = $?FILE ) ~~ s|.*"/"||; -- Theo van den Heuvel Van den Heuvel HLT Consultancy

Re: issues with

2017-03-09 Thread ToddAndMargo
On 03/09/2017 04:00 AM, Timo Paulssen wrote: Hey, X11::Xlib::Raw is buggy. It has to have all modules it uses internally inside its "provides" section in the META6.json, otherwise "use" will not find them. I'll open a ticket with the module author. HTH - Timo Hi Timo, As long as Inlin

Re: Variables in modules

2017-03-09 Thread ToddAndMargo
On 03/09/2017 03:58 AM, Timo Paulssen wrote: "my" variables are lexically scoped to the curly braces that contain them. That means that your $IAm is limited exactly to that init block. Also, =~ isn't in perl6. You can put "my $IAm" outside that block and assign to it inside the block, though. H

Re: How to defined reversed word in a perl6 grammar ?

2017-03-09 Thread Will Coleda
Recommended to use ".fc" instead of ".uc" when trying to do manual case-insenstive matches. (helps out with unicode edge cases) On Thu, Mar 9, 2017 at 1:48 PM, Theo van den Heuvel wrote: > however in such a simple case we could just write > > token idf { $=[ \w+ ] .uc eq 'WHERE' }> } > > > cheer

Re: How to defined reversed word in a perl6 grammar ?

2017-03-09 Thread Theo van den Heuvel
however in such a simple case we could just write token idf { $=[ \w+ ] .uc eq 'WHERE' }> } cheers, Theo van den Heuvel schreef op 2017-03-09 19:42: I use something like token idf { $=[ \w+ ] ~~ :i/^ where $/}> } but there are likely to be simpler solutions. yary schreef op 2017-03-09 1

Re: How to defined reversed word in a perl6 grammar ?

2017-03-09 Thread Theo van den Heuvel
I use something like token idf { $=[ \w+ ] ~~ :i/^ where $/}> } but there are likely to be simpler solutions. yary schreef op 2017-03-09 16:12: The method for defining reserved words in general is to have a rule that matches them (typically "match anything in this array" or a long alternatio

Re: How to defined reversed word in a perl6 grammar ?

2017-03-09 Thread yary
The method for defining reserved words in general is to have a rule that matches them (typically "match anything in this array" or a long alternation), and then modifying the rules where those reserved words are not allowed to reject them. So for that grammar, you want to change "identifier" to re

Re: Your thoughts on Padre?

2017-03-09 Thread Timo Paulssen
On 09/03/17 08:29, ToddAndMargo wrote: > https://atom.io/ > > as it is specifically written for Perl 6 Not quite. It's a general-purpose code editor that you could say comes from the javascript corner of programming. However, we do have active devs improving the perl6-related plugins for atom

Re: Your thoughts on Padre?

2017-03-09 Thread Luca Ferrari
On Thu, Mar 9, 2017 at 8:29 AM, ToddAndMargo wrote: > https://atom.io/ > > as it is specifically written for Perl 6 > I'm not sure about that...but I would prefer Emacs. Luca

Re: How to defined reversed word in a perl6 grammar ?

2017-03-09 Thread Timo Paulssen
Hi, Wouldn't it be enough to use something that backtracks? As you might know, "token" is "regex + ratcheting" and "rule" is "token + sigspace". HTH - Timo

Re: issues with

2017-03-09 Thread Timo Paulssen
Hey, X11::Xlib::Raw is buggy. It has to have all modules it uses internally inside its "provides" section in the META6.json, otherwise "use" will not find them. I'll open a ticket with the module author. HTH - Timo On 08/03/17 22:08, ToddAndMargo wrote: > Hi All, > > What is wrong with this?

Re: Variables in modules

2017-03-09 Thread Timo Paulssen
"my" variables are lexically scoped to the curly braces that contain them. That means that your $IAm is limited exactly to that init block. Also, =~ isn't in perl6. You can put "my $IAm" outside that block and assign to it inside the block, though. HTH - Timo

Re: Your thoughts on Padre?

2017-03-09 Thread Andreas Mueller
how funny is that ?? =:-) (please watch the clip) but I think we need an editor written in perl6 - not in Java ;) -am On 08.03.17 23:29, ToddAndMargo wrote: > Hi All, > > The guys on the chat line told me to look at > > https://atom.io/ > > as it is specifically written fo