On Tue, 1 Jul 2014 11:58:20 -0400, Alex Rozenshteyn <rpglove...@gmail.com> 
wrote:
> There seems to be no way to get an input equivalent to ",h -c a" (note
> the lack of parentheses) into the guile repl using guile-sweet.
> 
> This makes it more difficult to use guile-sweet as a replacement for
> the guile repl, since some guile meta-commands are not handled.

The guile repl includes some magic commands and handles them specially.
Unfortunately, it makes assumptions that the sweet reader falsifies.
It'd be nice to find a way to invoke these commands directly... and then 
perhaps their
ease could be restored.

Here's what I know so far:
Guile's source code can be viewed on savannah's git page, e.g.:
  
http://git.savannah.gnu.org/gitweb/?p=guile.git;a=tree;f=module/system/repl;h=c767baf098d5dde0cb396eabcd6c40482608846c;hb=93e838423cba836fd90662f9acd362ddf3aa6fb1
The repl is implemented in "module/system/repl/", especially file "repl.scm".
I suspect that procedure "meta-reader" is a key player.

I haven't spent much time looking to see if there's a way to invoke the 
meta-commands
more directly, but it *seems* like it should be possible!

> Also, sweeten suggests that the solution would be ",h\n-c\na\n", but
> both unsweeten and guile-sweet output before all three lines have been
> input, and unsweeten does not collapse them onto the same line.
> 
> I'm not sure how one could work around it or even if it's something
> one could solve within the spec, but it just bit me, so I thought I'd
> mention it.

Thanks.  Anyone have suggestions?

--- David A. Wheeler

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Readable-discuss mailing list
Readable-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/readable-discuss

Reply via email to