hy/tests/native_tests/contrib
Gergely Nagy 817b4688d8 hy.contrib.walk: New contrib module for walking the Hy AST
The hy.contrib.walk module provides a few functions to walk the Hy AST,
and potentially transform it along the way. The main entry point
is (walk), which takes two functions and a form as arguments, and
applies the first (inner) function to each element of the form, building
up a data structure of the same type as the original. Then applies outer
(the second function) to the result.

Two convenience functions are provided: (postwalk) and (prewalk), which
do a depth-first, post/pre-order traversal of the form.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
2014-02-01 18:34:12 +01:00
..
__init__.hy contrib/anaphoric: More anaphoric macros added 2013-12-26 05:57:06 +02:00
anaphoric.hy Merge branch 'master' into paultag/ana/if 2013-12-26 17:57:29 -05:00
loop.hy Added loop/recur macro for tail-call optimization 2014-01-12 14:02:27 -05:00
meth.hy Move all contrib.meth tests to tests/native_tests/contrib/. 2014-01-17 03:56:12 +02:00
walk.hy hy.contrib.walk: New contrib module for walking the Hy AST 2014-02-01 18:34:12 +01:00