Perl 6 - the future is here, just unevenly distributed

IRC log for #marpa, 2015-06-26

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

All times shown according to UTC.

Time Nick Message
02:01 jeffreykegler joined #marpa
03:46 ronsavage joined #marpa
06:22 ronsavage joined #marpa
10:24 koo5 joined #marpa
12:18 rns joined #marpa
12:47 rns ronsavage: re http://irclog.perlgeek.de/m​arpa/2015-06-25#i_10802525 -- perhaps you’d find useful the distill() method of MarpaX::AST module I’m doing [1]. I did a quick example for bisect.lua file from your test suite [2a], [2b].
12:47 rns In a nutshell, you can specify node ids (lhs names) to skip and the tree will be build accordingly. Other examples are in MarpaX-AST/t, e.g.  q30633258.t.
12:47 rns There is also walk() function to do tree processing and a host of DOM-like methods to work with nodes (examples are in [3]). Internally, it’s a array of arrays blessed to MarpaX::AST, so the distilled tree can be used in, e.g., Tree::Simple or Tree::DAG_Node (didn’t test that though).
12:47 rns The example assumes that MarpaX-AST and MarpaX-Languages-Lua-Parser repos are cloned in the same directory.
12:47 rns [1] https://github.com/rns/MarpaX-AST
12:48 rns [2a] https://github.com/rns/Marp​aX-AST/blob/master/t/lua.t
12:48 rns [2b] https://gist.github.com/rns/a13bc41665215387b54e
12:48 rns [3] https://github.com/rns/MarpaX-Regex/​blob/master/lib/MarpaX/Regex/AST.pm
13:58 RichardMichaels hi
14:10 rns RichardMichaels: hi
14:12 RichardMichaels do you have your own parser, rns
14:15 RichardMichaels i have an interest in Marpa of course and also have developed one of my own
14:16 rns yep, a couple Lua -- https://github.com/rns/MarpaX-Languages-Lua-AST -- and BNFish regex syntax -- https://github.com/rns/MarpaX-Regex, not released yet though.
14:16 rns re your parser -- is it open source?
14:19 koo5 joined #marpa
14:21 RichardMichaels yes, it is, it won't run yet, but i am open sourcing it.
14:22 RichardMichaels http://pelfe.sf.net is where it will go
14:25 RichardMichaels if you want to see it i could throw it in a pastebin
14:26 RichardMichaels i need to get on the ball in getting it uploaded to sf
14:26 rns I see; do you have a grammar for it? It will compile to perl?
14:27 rns BTW, Marpa is also good at what Jeffrey called parser-driven developement -- evolving spec around the parser incrementally.
14:30 rns I've read http://pelfe.sourceforge.net/samples.html, so I've got a glimpse of Pelfe.
14:31 rns sorry, time for me to go away, will backlog later.
14:32 pczarn joined #marpa
14:32 pczarn I'm backlogging from time to time
14:34 pczarn LLamaRider: the thin wrapper in rust isn't up-to-date
14:35 RichardMichaels Its not very good performance wise, the parser engine is written IN perl. And you can write parser rules as Perl data structures, which the engine reads
14:36 pczarn I started with bare basics and I want to finish it
14:36 RichardMichaels It has a different design goals than Marpa
14:40 pczarn LLamaRider: rust-marpa/master branch is incomplete. You can browse other branches to see more recent work
14:41 RichardMichaels Pelfe is a general purpose language that is based on Perl, the parser is a subproject
15:28 pczarn joined #marpa
15:42 RichardMichaels my parser/lexer won't win any awards for performance
16:07 pczarn joined #marpa
16:24 jeffreykegler joined #marpa
16:35 pczarn joined #marpa
16:49 Cheery RichardMichaels: snail race
16:50 Cheery but I suppose you already love it though?
16:50 Cheery so it might win a race in love.
16:52 jeffreykegler joined #marpa
17:09 jeffreykegler joined #marpa
17:21 jeffreykegler joined #marpa
18:03 jeffreykegler joined #marpa
18:18 RichardMichaels Cheery, it works for me, but its slow
18:49 lwa joined #marpa
19:07 jeffreykegler joined #marpa
19:20 jeffreykegler joined #marpa
21:19 pczarn joined #marpa
23:41 ronsavage joined #marpa

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