eval macros at compile time
This commit is contained in:
parent
b380b330cd
commit
4ffe20e853
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user