On 07/10/2010 04:51 AM, Daniele Benegiamo wrote:
Per Bothner wrote:
On 07/09/2010 03:18 AM, Daniele Benegiamo wrote:
I think you want to work at the level of (1) - the actual reader
S-expressions.
There are some classes of Kawa that can be used to parse/read these
S-expressions? As Kawa already do it (and a lot more), there should be
something... This would solve my problems (well, part of them ;) ).
You can use the standard Scheme read function. If you want to do this
from Java rather than Scheme, you can see what Scheme does by reading
the implementation of read in kawa/lib/ports.scm. The guts of it is the
call to the readObject method of the gnu.kawa.lispexpr.LispReader class.