hy/tests
Paul Tagliamonte 8d2143177e Overhaul macros to allow macros to ref the Compiler
This allows macros to take a keyword dict containing useful things by
defining a keyword argument. This allows us to pass in new objects
which might be handy to have in macros.

This changeset refactors module_name to become `compiler`, so that we
can pass the compiler itself into the macros as `opts['compiler']`.

This allows the macro to both get the macro name
(`compiler.module_name`), as well as use the compiler to build AST.

In the future, this will enable us to create "super-macros" which return
AST, not HyAST, in order to manually create insane things from userland.

For userland macros (not `defmacro`) the core.language `macroexpand`
will go ahead and make a new compiler for you.
2015-12-23 15:52:47 -05:00
..
compilers variadic if 2015-10-17 19:51:03 -06:00
importer hy/compiler.py: import only handles HySymbol and HyList, bail on others 2014-02-11 17:29:50 +01:00
lex Reformat string literals in test_lex_strings 2015-08-25 11:04:39 -05:00
macros Overhaul macros to allow macros to ref the Compiler 2015-12-23 15:52:47 -05:00
models Merge pull request #761 from larme/fix-replace-hyobject 2015-07-23 14:09:56 +02:00
native_tests Merge pull request #872 from tuturto/xor 2015-12-12 12:38:14 -05:00
resources Fixes a long-standing bug in import under Python 3.3 and later. 2014-12-07 11:02:48 -07:00
test_files Run file using hy -i 2015-02-28 18:11:42 +10:00
__init__.py Move Botsbuildbots to contrib 2015-08-04 11:59:10 +02:00
test_bin.py Run file using hy -i 2015-02-28 18:11:42 +10:00