Perl 6 - the future is here, just unevenly distributed

IRC log for #marpa, 2016-05-18

| Channels | #marpa index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
01:48 ilbot3 joined #marpa
01:48 Topic for #marpa is now Start here: http://savage.net.au/Marpa.html - Pastebin: http://scsys.co.uk:8002/marpa - Jeffrey's Marpa site: http://jeffreykegler.github.io/Marpa-web-site/ - IRC log: http://irclog.perlgeek.de/marpa/today
03:15 rns joined #marpa
03:16 rns idiosyncrat: re http://irclog.perlgeek.de/m​arpa/2016-05-17#i_12497169 -- sure, makes sense. I did a touch up.
03:18 rns BTW, make releng currently complains on missing meta_make in cpan/xs dir -- I see you're reorganizing xs dir so that's probably gonna be fixed soon.
04:32 idiosyncrat_ Good night!
04:46 rns good  night
04:46 rns left #marpa
05:16 VsyachePuz joined #marpa
06:13 solarradiation joined #marpa
06:20 ronsavage joined #marpa
06:25 solarradiation anyone familiar with MarpaX::Languages::ECMAScript::AST? I ran the snippet in its synopsis, and the output AST seems unreasonably huge... see http://pastebin.com/swdXB9Jv, where I printed the the AST of "var i = 0;" as json. it's over 20 layers deep and seems to have irrelevant nodes like BitwiseXORExpression and BitwiseANDExpression
08:13 koo7 joined #marpa
08:21 idiosyncrat_ joined #marpa
08:22 idiosyncrat_ solarradiation: re http://irclog.perlgeek.de/m​arpa/2016-05-18#i_12498971
08:22 idiosyncrat_ That's what an operator hierarchy looks like.
08:25 idiosyncrat_ If what you have is something that binds tightly, it'll be a trivial example of an expression at a looser precedence, and you'll see all of that in the AST.
08:26 idiosyncrat_ That's if you write the grammar to follow the hierarchy strictly, which will be the case if you stick close to the standards.
08:28 idiosyncrat_ So the apparently irrelevant stuff you see is not irrelevant -- it's relevant, but trivially.
08:45 pczarn joined #marpa
08:46 hobbs joined #marpa
08:46 hobbs joined #marpa
08:47 koo7 joined #marpa
08:48 sadmac joined #marpa
08:54 iarna joined #marpa
10:34 koo7 joined #marpa
11:03 rns joined #marpa
11:04 rns solarradiation: re http://irclog.perlgeek.de/m​arpa/2016-05-18#i_12498971 -- you need to traverse the parse tree returned by parse(), e.g. https://gist.github.com/rns/b0​0a4e6a48eaf86f1c6ad2fe33a14ad9
11:06 rns that's how I'd do it -- jddurand, who wrote the module, may have better advice.
11:45 Pursuit joined #marpa
11:55 kaare_ joined #marpa
13:49 koo7 joined #marpa
14:00 beaugunderson joined #marpa
15:35 solarradiation rns, idiosyncrat_ thank you-- i'm not sure i understand the 'irrelevant stuff' part but i'll try to figure it out today and come back
15:37 idiosyncrat_ solarradiation: the idea is that that expressions are defined as a hierarchy, or order of precedence, and each type is always included so that 'a+b' for example
15:39 idiosyncrat_ is a factor in a multiplication.  It just so happens the multiplication here is trivial -- there is only one factor.  We usually don't think of 'a+b' as a multiplication
15:39 idiosyncrat_ because there's no multiplication sign.  Unlike 'a+b*c', which has 2 factors 'a+b' and 'c' and an explicity multiplication sign.
15:40 idiosyncrat_ Hope this is helpful!
16:48 kook joined #marpa
16:49 kook_ joined #marpa
17:00 jdurand joined #marpa
17:04 jdurand solarradiation: Re http://niceperl.blogspot.com/2016/05/lxx​x-cpan-great-modules-released-last.html - This the exact interpretation as perl the grammar, what you think are irrelevant nodes are explcit rules in the official grammar
17:04 jdurand Argh, this should have been Re http://irclog.perlgeek.de/m​arpa/2016-05-18#i_12498971 - now you know what I was looking at before lol
17:05 jdurand "as per the grammar" - sorry I use to have typos increasing the entropy
23:05 ronsavage joined #marpa
23:54 idiosyncrat_ joined #marpa

| Channels | #marpa index | Today | | Search | Google Search | Plain-Text | summary