Files
RustAst/examples/macro_power.myc
T
2026-02-22 00:43:39 +01:00

10 lines
206 B
Plaintext

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