pugscode.org/ | nopaste: sial.org/pbot/perl6 | pugs: [~] <m oo se> (or rakudo:, kp6:, elf: etc.) (or perl6: for all) | irclog: irc.pugscode.org/
Set by Tene on 29 July 2008.
meppl good night 01:43
wayland_ Question; is there anything like Data::Dumper for Rakudo? 06:46
Or rather, is there any way I can get documentation on the tree that is built after running a grammar?
Ok, I've discovered that a Regex is a Sub object; anyone know how to get a list of attributes for a Sub object? 07:04
Although if anyone knows how to do it for a whole grammar, that would be even better 07:07
azawawi hi * 07:10
wayland_ azawawi: hi 07:11
azawawi @tell moritz_ im interested in www.nntp.perl.org/group/perl.perl6....g788.html. 07:31
lambdabot Consider it noted.
pugs_svn r22645 | pmurias++ | [mildew] t/hacks/out.t runs 10:25
masak if "file" ~~ :e returns whether a file exists, what should "file" ~~ :foo return? 11:28
(for values of foo which don't have established meaning as filetest pairs in Perl 6)
masak what's the easiest way to ask "is this range a part of that range" in Perl 6? 11:39
pmurias masak: re first question see S03:2999 11:43
re second $elem ~~ $range 11:44
masak pmurias: I see the line, but I'm not sure how that answers the question
pmurias: I'm talking about two ranges, not an elem and a range
does S03:2999 mean that it tries to call a method, regardless? 11:45
pmurias i think so
masak I can do that :)
pmurias $a.min >= $b.min && $a.max <= $b.max 11:46
masak so, in effect "file" ~~ :e translates to "file".:e(1), right?
pmurias: ok, that's reasonable 11:47
you could even do that with just <= comparisons
$b.min <= $a.min <= $a.max <= $b.max 11:48
pmurias nicer, i'm not used to <= doing chaining yet 11:49
masak I'm still trying to decide if it's nicer or not :)
rakudo: "file".:e(1) 11:51
p6eval rakudo 31963: OUTPUT[Multiple Dispatch: No suitable candidate found for 'concatenate_str', with signature 'PSP->P'␤current instr.: 'parrot;Perl6;Grammar;Actions;_block2075' pc 116247 (src/gen_actions.pir:5679)␤]
masak oy
pmurias it's closer to the way ranges would be represented on a line
masak that's true
in "file".:e(1), is the method name ':e' ?
rakudo: "file".':e'(1) 11:52
p6eval rakudo 31963: OUTPUT[Method ':e' not found for invocant of class 'Perl6Str'␤current instr.: '_block11' pc 37 (EVAL_13:18)␤]
masak ah, that's better :)
masak I expect there to be a subset operator ⊂ available as a fairly well-respected Perl 6 language extension, for checking subsethood of arrays, hashes and ranges 12:00
masak the filetest methods, :e et al, are not in S29. 12:24
pmurias moritz_: it would be nice to have mildew in the evalbot ;) 14:49
azawawi hi 15:22
masak azawawi: hello 15:23
pugs_svn r22646 | pmurias++ | [smop] Scalar.STORE returns the stored value 16:09
pmurias @tell ruoso why is SMOP_INTERNAL_*_SEQUENCE seperated with SMOP_BOOTSTRAP_*_SEQUENCE? 16:42
lambdabot Consider it noted.
^aristotle rakudo: 0.37 17:32
p6eval rakudo 31963: RESULT[0.37]
^aristotle rakudo: 0.37<<**<<0..8
p6eval rakudo 31963: OUTPUT[Statement not terminated properly at line 1, near "<<**<<0..8"␤␤current instr.: 'parrot;PGE;Util;die' pc 129 (runtime/parrot/library/PGE/Util.pir:83)␤]
^aristotle rakudo: 0.37 <<**<< 0..8
p6eval rakudo 31963: OUTPUT[Statement not terminated properly at line 1, near "<<**<< 0.."␤␤current instr.: 'parrot;PGE;Util;die' pc 129 (runtime/parrot/library/PGE/Util.pir:83)␤]
^aristotle rakudo: 0..8 17:33
p6eval rakudo 31963: RESULT[0..8]
^aristotle rakudo: 0.37 >>**<< 0..8
p6eval rakudo 31963: OUTPUT[Statement not terminated properly at line 1, near ">>**<< 0.."␤␤current instr.: 'parrot;PGE;Util;die' pc 129 (runtime/parrot/library/PGE/Util.pir:83)␤]
^aristotle rakudo: 0.37 <<*<< 0..8
p6eval rakudo 31963: OUTPUT[Statement not terminated properly at line 1, near "<<*<< 0..8"␤␤current instr.: 'parrot;PGE;Util;die' pc 129 (runtime/parrot/library/PGE/Util.pir:83)␤]
^aristotle rakudo: 0..8 >>+>> 1 17:34
p6eval rakudo 31963: OUTPUT[Statement not terminated properly at line 1, near ">>+>> 1"␤␤current instr.: 'parrot;PGE;Util;die' pc 129 (runtime/parrot/library/PGE/Util.pir:83)␤]
^aristotle scratches head
pugs: 0..8 >>+>> 1
p6eval pugs: OUTPUT[*** ␤ Unexpected ">>+>>"␤ expecting operator␤ at /tmp/Gp1YeNU0Zv line 1, column 6␤]
^aristotle pugs: 0..8 <<*>> 1 17:35
p6eval pugs: OUTPUT[*** ␤ Unexpected "<<*>>"␤ expecting operator␤ at /tmp/mMGTXNXsan line 1, column 6␤]
^aristotle aha, *that* bot responds to queries. sorry for the noise 17:36
meppl good night 19:34
pugs_svn r22647 | pmurias++ | [smop] support for binding to hash elements 20:30
pmurias what does ($foo := $bar) := $baz do? 20:33
in other words what does infix:<:=> return? 20:34
pugs_svn r22648 | pmurias++ | [smop] added missing file 20:40
r22648 | pmurias++ | [mildew] my $foo;
pasteling "mj41" at 147.229.5.124 pasted "subversion problem inside pugs/v6/smop/m0ld directory" (28 lines, 1K) at sial.org/pbot/32705 21:45
mj41_ Hi. Any ideas?