Perl 6 - the future is here, just unevenly distributed

IRC log for #marpa, 2017-05-08

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

All times shown according to UTC.

Time Nick Message
01:35 ronsavage joined #marpa
01:49 ilbot3 joined #marpa
01:49 Topic for #marpa is now Start here: http://savage.net.au/Marpa.html - Code paste: 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 - Youtube channel: https://www.youtube.com/channel/UCYKVfGBtfTqbs1JdYq-dc5g
02:04 idiosyncrat joined #marpa
03:03 idiosyncrat At this point I'm working on a new feature -- allowing more than one $slr->read() per parse.
03:03 idiosyncrat This means you can assemble your input from several "blocks".  At present, Marpa::R2 requires you to have the entire input ready when you start the parse.
03:04 idiosyncrat That's OK for a compiler and most other apps, but it's a nuisance in some situations, and it makes "on-line" parsing with Marpa::R2 impossible.
03:05 idiosyncrat It's a complicated feature, but I've already changed the data structures for the input to allow it, so I am well along.
03:05 idiosyncrat Maybe in the next release or two, but often things turn out to be more complex than foreseen, so no promises.
03:51 ronsavage JK: Here's the easy (joke) way to implement processing of chunks. Create a new type of event: pause-before-end-of-chunk. Upon reading whole input or chunk, fabricate a pause-before-etc event, process, repeat.
04:52 idiosyncrat ronsavage: Actually (non-joke) I am thinking of a kind of smart-macro facility.  When a macro is encountered, the app can evaluate it, and the result becomes the next block.  Once that text is parsed, the orginal block (the one containing the macro) can be returned to.
05:56 ronsavage joined #marpa
05:57 ronsavage So the macro idea sounds like a callback, whereby Marpa asks the user for a chunk whenever it (Marpa) runs out of input?
06:06 idiosyncrat ronsavage: I plan to implement it as part of the test suite.  That will make it clearer what I have in mind.
06:06 idiosyncrat Good night!
06:20 iarna joined #marpa
06:36 sirdancealot joined #marpa
07:06 ronsavage joined #marpa
15:11 choroba joined #marpa
18:45 iarna joined #marpa
22:06 ronsavage joined #marpa
23:55 ronsavage joined #marpa

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