> > That's great!! I'll sit down and look at what > you've done soon. Have you given this much testing yet? > > --- David A. Wheeler
I've expanded my version a lot now, and it can handle anything but #( expressions now. The version I'm working on is this file: http://ulvinges.homeip.net/prj/iexpr/iexpr.scm (And I now know that I use some unstandar scheme things, the only thing I could find was open-input-string, which works with my interpreter, gambit-c). ******************** read.ism ****************** define fac x if = x 0 1 * x fac - x 1 define range x if zero? x list x append range -- x list x display "A \"string\"\n" display list #f (list #\) ) #\( #\newline 'symbol #\newline write `(list ,(+ 1 2) 4) group newline write ` group list unquote + 1 2 4 group newline ;the following line shouldn't be working yet... ;write `#(10 5 ,(sqrt 4) ,@(map sqrt '(16 9)) 8) write map fac range 10 group newline write fac 5 group newline ************************* EOF ******************** The above code is correctly interpreted and executed. One thing I've found is that define and lambda are very irritating. def and lam is a lot better, because with a space, they're 4 characters long, and that is the tab indent my text editor uses. My code also shouldn't work with real tabs, but that could be fixed. If you set a variable at the begining of your code, that specifies how long a hard tab is, then tabs could be handled portably. (Also the letter i I put before every one of my functions makes me think that this is an apply product ;) I'm currently working on making my text editor (vim) indent properly... I again wish everyone Happy Programming!!! ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ Readable-discuss mailing list Readable-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/readable-discuss