Perl 6 - the future is here, just unevenly distributed

IRC log for #marpa, 2016-05-26

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

All times shown according to UTC.

Time Nick Message
00:35 ronsavage joined #marpa
00:54 idiosyncrat_ joined #marpa
00:55 idiosyncrat_ rns: my plan is that the syntax
00:55 idiosyncrat_ [[ "lua code" ]]
00:55 idiosyncrat_ can be used in actions and also as a statement by itself.  When a statement by itself, the Lua code will have global. effect.
00:56 idiosyncrat_ Eventually we may decide to do per-grammar environments or something like that.
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
04:37 idiosyncrat_ Good night!
09:46 rns joined #marpa
10:04 rns idiosyncrat: re http://irclog.perlgeek.de/marpa/2016-05-26#i_12547945 -- great idea -- such statements can be used for metagrammar ops, e.g. to import a rule from one grammar to another (provided there is access to the grammar rules after its source is parsed), e.g.
10:06 rns my $g1 = Marpa::R3::G->new({ source => \$s1 }) # grammar name needs to be in the source or a sane default will be assigned as was planned for Kollos
10:07 rns my $g2 = Marpa::R3::G->new({ source => \$s2 })
10:09 rns $s2 = '...  [[ import rule LHS_QUALIFIER from GRAMMAR_NAME_SPECIFIED_IN_$s1 ]] ... '
10:11 rns LHS_QUALIFIER can be LHS for all alternatives or LHS[NAME] or LHS/NAME for RHS alternative having name adverb
10:12 rns Just thinking aloud. :)
10:38 rns Oh, http://irclog.perlgeek.de/marpa/2016-05-26#i_12549697 is not exactly lua, but can exposed via Marpa::R3 lua API be as semantics, e.g.
10:39 rns marpalua.import(LHS_QUALIFIER, GRAMMAR_NAME_SPECIFIED_IN_$s1) or, more perlishly,
10:39 rns marpalua.use(LHS_QUALIFIER, GRAMMAR_NAME_SPECIFIED_IN_$s1)
10:40 rns s/can exposed/can be exposed/
16:44 kaare_ joined #marpa
16:52 rns left #marpa
18:36 maybekoo2 joined #marpa
18:40 maybekoo2 joined #marpa
20:56 idiosyncrat_ joined #marpa
23:03 ronsavage joined #marpa

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