eval macros at compile time

This commit is contained in:
Nicolas Dandrimont 2013-05-11 19:40:27 +02:00
parent b380b330cd
commit 4ffe20e853

View File

@ -35,6 +35,7 @@ from hy.models.float import HyFloat
from hy.models.list import HyList
from hy.models.dict import HyDict
import hy.importer
from hy.core import process
from hy.util import str_type
@ -1616,6 +1617,8 @@ class HyASTCompiler(object):
]),
]).replace(expression)
hy.importer.hy_eval(new_expression, {})
return self.compile(new_expression)
@builds(HyInteger)