a54f6aa38b
The module name allows macros to preexpand their body in the proper context.
13 lines
235 B
Python
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)
|