From: Dazhi L. <da...@uc...> - 2002-05-26 18:18:46
|
Hi Timothy, Thank you for asking! Actually it went pretty well. We rewrote part of that EditArea component so it does basic paren matching and indenting, enough for a listener. Since our project requires a more sophisticated Scheme editor, which should be able to do syntax highlighting, custmizable indenting and find/replace etc, we did this with Swing. So a jseditor module is added to the project, which can communicate with instances of listeners through a static hashtable (AppletStore). Our latest working version and source can be found at: http://wiser.cs.berkeley.edu/citris/darrel/jscheme/ BTW, a quick question: After user program in JScheme for a while, is there an easy way to erase all user defined bindings, that is, to return to the initial state of JScheme? I'll take a look at your link. But since I'm graduating and sort of finishing up my work on this project, I may not have time to switch to a different implementation. Darrel Timothy Hickey wrote: > Hi Darrel, > > How has your Scheme interpreter applet project for WISE been > progressing lately? > > I recently checked in a new Scheme Interpereter applet > that you might be interested in. It should run in all browsers > > http://www.cs.brandeis.edu/~tim/jscheme/src/jlib/demo/SchemeEval.html > > and it does "paren matching" and auto-indenting. > > Since "flashing" parens is fairly difficult to implement in Java 1.1, > this applet has an extra textarea showing the most recently > matched complete expression. It is implemented entirely in > Scheme with no additional Java classes needed. > > Please feel free to "steal" anything you want from the code, > it is open-source with zlib/png licensing (the most open of > the open-source licenses). > > We hope to add a "reformat" button, that will auto-indent every > line of the file. Also, improved error reporting would be > helpful especially for pedagogical purposes. For Java 1.2+ > applets (or Java Web Start), we can use Swing highlighting > for paren matching.... > > ----Tim--- |