This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Access the AST


Per Bothner wrote:
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.

Thanks. I will experiment a little next week, when I will back to office.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]