Parrot 5.2.0 "Stuffed Parrot" | parrot.org/ | Log: irclog.perlgeek.de/parrot | #parrotsketch meeting Tuesday 19:30 UTC
Set by moderator on 2 April 2013.
02:34 perlite joined 02:52 preflex_ joined 03:15 Khisanth joined 03:16 awwaiid joined
dalek kudo/nom: 2bd981d | (Geoffrey Broadwell)++ | src/core/Hash.pm:
Break DUMP recursion for Hash
03:24
kudo/nom: 160c0f8 | (Geoffrey Broadwell)++ | src/core/Mu.pm:
DUMP armoring and correctness fixes
kudo/nom: 5adc4db | (Geoffrey Broadwell)++ | src/core/Mu.pm:
DUMP(): Remove redundant null check; add explicit low-level hash handling; minor refactoring to make debugging clearer
06:58 davidfetter joined 07:05 brrt joined 07:33 kid51 joined 07:35 brrt joined 09:09 contingencyplan joined 09:40 perlite joined 09:55 bouncy joined 10:02 schm00ster joined 10:58 xcombelle joined 11:04 brrt joined 11:59 lateau joined 12:04 lateau joined
lateau hello guys. I have a question about parrot-nqp to create grammar. How <.term> and <term> are different? The token term is simply defined like this: token term {\\h*';' } 12:05
masak lateau: come back so I can answer your question! 12:19
12:21 lateau joined
lateau masak: thank you masak! my connection to parrot.org is poor and I don't know when it disconnect :( 12:22
masak lateau: the '.' simply means "match, but don't capture into a named slot $/<term>" 12:24
lateau masak: wow! thank you for a great answer! 12:26
masak: what means the named slot? I guess it's not same with variable table... 12:27
masak: symbol table? 12:29
masak lateau: any regex/grammar match produces a match object. $/ happens to be the Perl 6 name for it. $/<term> is a named entry in $/. think of it as a hash table. (although it does numbered entries too, like an array) 12:50
12:53 lateau joined
lateau masak: thank you again. I don't know I understand what you said but I've tested little sample grammar and action: token top_compstmt { <.term> } method top_compstmt($/) { make $<term>.ast; } 12:55
masak: then I see a error message: Method 'ast' not found for invocant of class 'Undef' 12:56
masak: but I could make AST of $<term> with <term>
masak because you're not capturing $<term> (because of the dot), so $<term> is undefined.
yes.
lateau masak: GOOD! 12:57
13:02 bluescreen joined 13:12 PacoAir joined 14:01 darbelo joined 14:23 Psyche^ joined 15:05 estrabd joined 15:19 kid51 joined 16:26 quias joined
kid51 Yaay! We're still passing all tests on Darwin/PPC! 16:27
Coke what version of the OS? 16:47
10.4? 16:48
r: say (DateTime.new("2013-04-08") - DateTime.new("2007-11-14"))/365.24 16:51
p6eval rakudo 5adc4d: OUTPUT«Invalid DateTime string '2013-04-08'; use an ISO 8601 timestamp (yyyy-mm-ddThh::mm::ssZ or yyyy-mm-ddThh::mm::ss+0100) instead⤠in method new at src/gen/CORE.setting:11927⤠in method new at src/gen/CORE.setting:726⤠in block at /tmp/IimqielzHK:1â¤â¤Â»
Coke r: say (Date.new("2013-04-08") - Date.new("2007-11-14"))/365.24
p6eval rakudo 5adc4d: OUTPUT«5.399190â¤Â»
16:55 PacoAir joined 17:00 drift joined 17:17 darbelo joined 17:26 perlite joined 20:22 pjcj joined 20:27 pjcj joined 21:29 bluescreen joined 22:08 kurahaupo joined 22:42 kurahaupo left 23:45 Psyche^ joined