This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Access the AST
- From: Daniele Benegiamo <danielebenegiamo at fastwebnet dot it>
- To: kawa at sourceware dot org
- Date: Thu, 08 Jul 2010 20:02:17 +0200
- Subject: Access the AST
Hi,
besides executing some Scheme scripts, I need to "inspect" them to build
a GUI that reflects the source scripts (so that users can visually view
and edit the source code).
I would like to know if it is possible, using some Kawa class, to access
(directly or indirectly, e.g. rebuilding it in some way) the AST of a
source Scheme file.
I'm trying using Translator.formStack, and checking for implementation
of Iterable interface to distinguish expressions and terminals; but it
seems more an hack than a viable solution.
Any help is appreciated, regards.
Daniele.