On Wed, Aug 1, 2012 at 7:31 PM, David A. Wheeler <dwhee...@dwheeler.com> wrote:
>> To be honest, I think BiwaScheme is "not bad" - looking at the example
>> code, it seems that the terminal on biwascheme.org simply passes a
>> continuation to process each line entered into the terminal.
>
> I also started looking at BiwaScheme, but I was stymied by its hideously bad 
> documentation.  Eeeek.  It also appeared that read-char and peek-char weren't 
> implemented, which is rather a negative for us :-(.
>
> Yet I looked at a lot of Scheme-in-browser implementations, listed here:
>  https://sourceforge.net/p/readable/wiki/Website/
> BiWaScheme actually looks like a reasonably good implementation overall, but 
> its terrible documentation made it unclear to me where to get started.
>

This page seems to be the nearest you can get to documentation for how
to actually use it:

https://github.com/biwascheme/biwascheme/wiki/Extending-Scheme-interpreter

>>  As a
>> simplifying assumption, for sweet-Biwa we might modify this terminal
>> so that it ends an expression on an empty line (the BiwaScheme.org
>> version counts the number of ( ) to see if they balance - if they do,
>> then it passes the expression to the eval).  We can then wrap the
>> string into a special "portlike" object that is a mutable tuple of the
>> string and an index into it, and write my-peek-char and my-read-char
>> to manipulate that tuple.  If BiwaScheme doesn't have cond-expand we
>> can just preprocess src/kernel.scm for it (that's why cond-expand is
>> specified the way it is: it is supposed to be useable only on the
>> top-level, unless you know that you are in a Scheme that allows it to
>> be used nested - and if you know, then you're already in a cond-expand
>> on the top-level).
>
> You're already doing a lot, but would you be willing to take a starting crack 
> at that, for any one of those three cases (sweeten, unsweeten, and Scheme 
> REPL)?  I can help once something's started, and hopefully another lurker on 
> the list will help too!

Possibly.  I'll see what I can do this weekend if it's as simple as it
appears to be now

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Readable-discuss mailing list
Readable-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/readable-discuss

Reply via email to