hy/tests/resources/tlib.py
gilch a54f6aa38b add hidden &name parameter to macros
The module name allows macros to preexpand their body in the proper
context.
2017-09-23 14:59:43 -06:00

13 lines
235 B
Python

from hy.macros import macro
from hy import HyList, HyInteger
@macro("qplah")
def tmac(ETname, *tree):
return HyList((HyInteger(8), ) + tree)
@macro("parald")
def tmac2(ETname, *tree):
return HyList((HyInteger(9), ) + tree)