Perl 6 - the future is here, just unevenly distributed

IRC log for #marpa, 2015-08-21

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

All times shown according to UTC.

Time Nick Message
00:28 idiosyncrat_ dxvd: it's something I've wanted to see done.
00:28 idiosyncrat_ The SLIF is self-parsing -- that is, Libmarpa parses your SLIF script.
00:28 idiosyncrat_ You can write your own EBNF parser, leveraging the SLIF's grammar or not as you please.
00:28 idiosyncrat_ Things you'll need to come up with.
00:29 idiosyncrat_ 1.) What to do about lexing?  Use a standard lexer.  In the SLIF I also use Marpa as the lexer, which means I have a *very* powerful lexer, but one that is far from the fastest solution available.
00:30 idiosyncrat_ 2.) Semantics.  If you just take it is to a parse tree, then that's your semantics, and you can leave it to the user to do more if they desire.
00:36 dvxd my interest is this: having an EBNF function in C, I can import to newlisp. than I pass it a string which contains the grammar in EBNF; then it emits a parsetree or something that I can "walk" with lisp code to parse another string.  I guess, using it as a parser generator instead of a mess of state machines.  To include mini-languages etc.
00:39 idiosyncrat_ Sounds OK
00:44 idiosyncrat_ joined #marpa
00:54 idiosyncrat_ joined #marpa
00:59 idiosyncrat_ joined #marpa
01:04 dvxd I guess it would be this: func EBNF(grammar string, source string) {...}
03:06 Aria joined #marpa
03:07 mauke_ joined #marpa
03:13 CQ_ joined #marpa
05:11 ronsavage joined #marpa
06:39 ronsavage I've added a link to Marpa's homepage directly to the Jeffrey's annotated blog index.
08:59 koo7 joined #marpa
12:16 koo7 joined #marpa
12:21 koo7 joined #marpa
12:39 hobbs joined #marpa
17:27 koo7 joined #marpa
17:40 purmou joined #marpa
18:27 lwa joined #marpa
19:15 djns joined #marpa
20:08 ceridwen joined #marpa
20:08 ceridwen joined #marpa
20:20 idiosyncrat_ joined #marpa

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