diff options
| author | LLLL Colonq <llll@colonq> | 2026-08-10 21:49:57 -0400 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2026-08-10 21:49:57 -0400 |
| commit | 7b9c4a3ac265026d98624ac614eead866a190042 (patch) | |
| tree | 2c5024583a047223ad7f5866d800554c9b81e191 /pit/test | |
| parent | d70a6e5310607a25aabde85d0aa18948704f8f6a (diff) | |
pit: VM-style evaluation
Diffstat (limited to 'pit/test')
| -rw-r--r-- | pit/test/compile.pit | 6 | ||||
| -rw-r--r-- | pit/test/recurse.pit | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/pit/test/compile.pit b/pit/test/compile.pit new file mode 100644 index 0000000..37d7f57 --- /dev/null +++ b/pit/test/compile.pit @@ -0,0 +1,6 @@ +(defmacro! foo () + (setq! bar (lambda (x) (foo) (+ x 1))) + '(print 'hi)) + +(foo) +(print (funcall bar 1))
\ No newline at end of file diff --git a/pit/test/recurse.pit b/pit/test/recurse.pit new file mode 100644 index 0000000..8e1f784 --- /dev/null +++ b/pit/test/recurse.pit @@ -0,0 +1,5 @@ +(defun! foo () + (print! 'hi) + (foo)) + +(foo)
\ No newline at end of file |
