pull/10/head
Matthew Butterick 8 years ago
parent b2ad7fbd25
commit 40786d7010

@ -17,12 +17,12 @@
(define stack empty)
(define (pop-stack!)
(define item (first stack))
(define arg (first stack))
(set! stack (rest stack))
item)
arg)
(define (push-stack! item)
(set! stack (cons item stack)))
(define (push-stack! arg)
(set! stack (cons arg stack)))
(define (handle [arg #f])
(cond

@ -1,10 +1,9 @@
#lang br/quicklang
(provide + *)
(define-macro (stackerizer-mb EXPR ...)
(define-macro (stackerizer-mb EXPR)
#'(#%module-begin
(for-each displayln
(reverse (flatten (list EXPR ...))))))
(for-each displayln (reverse (flatten EXPR)))))
(provide (rename-out [stackerizer-mb #%module-begin]))
(define-macro (define-ops OP ...)

Loading…
Cancel
Save