mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-12 23:37:38 +02:00
Simplified example code for self-hosted compiler
This commit is contained in:
parent
1615794d99
commit
392637fe2c
1 changed files with 12 additions and 11 deletions
23
test2.scm
23
test2.scm
|
@ -2,17 +2,18 @@
|
||||||
(scheme file)
|
(scheme file)
|
||||||
(scheme write))
|
(scheme write))
|
||||||
|
|
||||||
(let loop ((i 10))
|
(write 'hello)
|
||||||
(if (zero? i)
|
;(let loop ((i 10))
|
||||||
(write 'done)
|
; (if (zero? i)
|
||||||
(loop (- i 1))))
|
; (write 'done)
|
||||||
|
; (loop (- i 1))))
|
||||||
|
;
|
||||||
(write (command-line-arguments))
|
;
|
||||||
|
;(write (command-line-arguments))
|
||||||
(write (when (lambda () #t) 'true))
|
;
|
||||||
(write (when (lambda () #f) 'false))
|
;(write (when (lambda () #t) 'true))
|
||||||
|
;(write (when (lambda () #f) 'false))
|
||||||
|
;
|
||||||
;; Need to fix this up at some point:
|
;; Need to fix this up at some point:
|
||||||
;;
|
;;
|
||||||
;; Lambda application is broken with pure varargs
|
;; Lambda application is broken with pure varargs
|
||||||
|
|
Loading…
Add table
Reference in a new issue