[erlang-questions] how: info on how to traverse abstract format trees?

Gleb Peregud gleber.p@REDACTED
Tue Jun 24 14:10:57 CEST 2008


On Tue, Jun 24, 2008 at 1:57 PM, Tim Fletcher <twoggle@REDACTED> wrote:
> The ERTS User's Guide describes the abstract format, but is there any
> info (official or otherwise) on how best to traverse these trees? It's
> possible to get most of the way by just matching on the terms and
> guessing which parts to traverse next, but it would be easier if there
> was a clearer definition of what should be handled.
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions

You may take a look at newly created "frabjous" project by Kevin Smith

Here it is:
http://weblog.hypotheticalabs.com/?p=275

<quote>
First, it interfaces directly with the compiler and handles all of the
low-level details around iterating over the AST and other parse
transform muck. Frabjous knows all about multi-pass transforms and
provides a persistent state mechanism for parse transformers so they
can remember where they've been and what they're doing.
</quote>

-- 
Gleb Peregud
http://gleber.pl/

Every minute is to be grasped.
Time waits for nobody.
-- Inscription on a Zen Gong



More information about the erlang-questions mailing list