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]

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.


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