Perl 6 - the future is here, just unevenly distributed

IRC log for #marpa, 2018-01-02

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

All times shown according to UTC.

Time Nick Message
00:13 travis-ci joined #marpa
00:13 travis-ci jeffreykegler/Marpa--R3#25 (master - dcf108d : Jeffrey Kegler): The build passed.
00:13 travis-ci Change view : https://github.com/jeffreykegler/Marpa--R3/compare/d60bd7f23ee0...dcf108d102cb
00:13 travis-ci Build details : https://travis-ci.org/jeffreykegler/Marpa--R3/builds/323957310
00:13 travis-ci left #marpa
00:51 idiosyncrat Demat!
01:37 ronsavage joined #marpa
02:41 travis-ci joined #marpa
02:41 travis-ci jeffreykegler/Marpa--R3#26 (master - e73f1b4 : Jeffrey Kegler): The build passed.
02:41 travis-ci Change view : https://github.com/jeffreykegler/Marpa--R3/compare/dcf108d102cb...e73f1b471988
02:41 travis-ci Build details : https://travis-ci.org/jeffreykegler/Marpa--R3/builds/323981316
02:41 travis-ci left #marpa
03:02 ilbot3 joined #marpa
03:02 Topic for #marpa is now Start here: http://savage.net.au/Marpa.html - Code paste/run: https://f.perlbot.pl/#marpa - Jeffrey's Marpa site: http://jeffreykegler.github.io/Marpa-web-site/ - IRC log: http://irclog.perlgeek.de/marpa/today - Youtube channel: https://www.youtube.com/channel/UCYKVfGBtfTqbs1JdYq-dc5g
03:56 aindilis joined #marpa
03:59 aindilis https://pastebin.com/Nkc3b4p4 -> any ideas on this error?: error(119): bash.g4::: The following sets of rules are mutually left-recursive [list1] and [simple_list1]
04:00 aindilis or does anyone have a bash grammar
04:00 aindilis I'm trying to use prolog to predict/learn the consequences of shell commands for a 'softbot' i.e. a software robot that executes in the UNIX domain, if anyone knows of relevant work
04:32 idiosyncrat aindilis:
04:32 idiosyncrat That's Prolog?
04:33 idiosyncrat Prolog parsing is just LL and has big troubles with left recursion.
04:34 idiosyncrat Sometimes people take top-down parsers and use tricks to do direct left recursion, but indirect left recursion is too much for them.  (IIRC ANTLR has the same kind of problem.)
04:35 idiosyncrat In any case, Marpa::R2 handle all sorts of left recursion without any trouble, if you want to try it.
04:38 idiosyncrat aindilis: Best of luck!
04:39 idiosyncrat left #marpa
04:45 ronsavage JK: No, that's not Prolog, which I've programmed in. It's a grammar which I think he means he's processing with Prolog.
05:17 ronsavage And, (One type of) OO Prolog is called Snap, which I've also programmed in. Very nice.
11:56 koom joined #marpa
12:25 koom joined #marpa
21:49 idiosyncrat joined #marpa
22:06 ronsavage joined #marpa
23:05 aindilis anyone know how to convert from an antlr g4 file to marpa?
23:17 ronsavage aindilis: I don't. Can you give us a link to the syntax doc?
23:19 idiosyncrat Perhaps it was the link aindilis gave yesterday: https://pastebin.com/Nkc3b4p4
23:19 idiosyncrat It *does* look like prolog
23:19 idiosyncrat s/prolog/ANTLR/ -- oops!
23:21 idiosyncrat aindilis -- converting should be quite possible.
23:21 idiosyncrat Biggest difference would be that Marpa has a sharp lexer/parser divide:
23:21 idiosyncrat a ::= b c d
23:21 idiosyncrat rules versis
23:22 idiosyncrat digits ~ [\d] +
23:22 idiosyncrat rules.
23:23 idiosyncrat Marpa is much more predictable in its behavior and much more likely to handle an arbitrary grammar.
23:33 ronsavage Ahh. I see.
23:40 ronsavage I did a MetaCPAN search for Antlr and only found Text::BibTex. The source code (*.c) has many references to Antlr but no syntax resembling that pasted file.
23:41 idiosyncrat ANTLR was in the Amsterdam shoot-out.
23:41 idiosyncrat It has no Perl port -- (chicken!)
23:41 idiosyncrat http://www.antlr.org/
23:42 idiosyncrat ronsavage: you may recall my brief exchange with Terence Parr -- I believe you cut&pasted it into the Marpa webpage.

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