Files
RustAst/examples/macro_power.myc
T
2026-02-22 12:07:58 +01:00

10 lines
207 B
Plaintext

;; Benchmark: 198ns
;; Benchmark-Repeat: 10207
;; Nested Macro and Arithmetic example
;; Output: 81
(do
(macro square [x] `(* ~x ~x))
(macro power4 [x] `(square (square ~x)))
(power4 3))