From 5b1ec1d7384d059247572bcc26266f0d91e97c9c Mon Sep 17 00:00:00 2001 From: Ian Piumarta Date: Fri, 10 May 2024 03:22:30 +0900 Subject: [PATCH] Test user-defined AST nodes. --- test.ref | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test.ref b/test.ref index 32a8366..4610e14 100644 --- a/test.ref +++ b/test.ref @@ -185,13 +185,15 @@ MACRO EVAL test with three and four call testfun REPLACEMENT 1 REPLACEMENT three +MakeSeven.__eval__ invoked +AST eval => 42 0 1 2 3 4 5 6 7 8 9 10 10 9 8 7 6 5 4 3 2 1 0 0 1 2 3 4 5 6 7 8 9 65 66 67 68 69 1 two 3 four -test.txt:331: *: illegal operand types Integer and String +test.txt:346: *: illegal operand types Integer and String 11: n * factorial(n - 1) 10: if (n < 2) "1" else n * factorial(n - 1) 9: factorial(n - 1)