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 write))
|
||||
|
||||
(let loop ((i 10))
|
||||
(if (zero? i)
|
||||
(write 'done)
|
||||
(loop (- i 1))))
|
||||
|
||||
|
||||
(write (command-line-arguments))
|
||||
|
||||
(write (when (lambda () #t) 'true))
|
||||
(write (when (lambda () #f) 'false))
|
||||
|
||||
(write 'hello)
|
||||
;(let loop ((i 10))
|
||||
; (if (zero? i)
|
||||
; (write 'done)
|
||||
; (loop (- i 1))))
|
||||
;
|
||||
;
|
||||
;(write (command-line-arguments))
|
||||
;
|
||||
;(write (when (lambda () #t) 'true))
|
||||
;(write (when (lambda () #f) 'false))
|
||||
;
|
||||
;; Need to fix this up at some point:
|
||||
;;
|
||||
;; Lambda application is broken with pure varargs
|
||||
|
|
Loading…
Add table
Reference in a new issue