dev-elider-3
Matthew Butterick 9 years ago
parent e0ab0660f6
commit 7aaa4cd3df

@ -45,7 +45,7 @@
;; bf implementation ;; bf implementation
;; state: one vector, one pointer ;; state: one vector, one pointer
(define bf-vector (make-vector 1000 0)) (define bf-vector (make-vector 30000 0))
(define bf-pointer 0) (define bf-pointer 0)
;; gets and sets ;; gets and sets

@ -14,6 +14,8 @@
;; todo: try adding support for line comments ;; todo: try adding support for line comments
#;[(:: "#" (:* (complement "\n")) "\n") (token 'comment #:skip? #t)] #;[(:: "#" (:* (complement "\n")) "\n") (token 'comment #:skip? #t)]
[whitespace (token 'white #:skip? #t)] [whitespace (token 'white #:skip? #t)]
;; treat other characters as comments
[(char-range #\nul #\~) (token 'ascii #:skip? #t)]
[(eof) eof])) [(eof) eof]))
(define (next-token) (get-token ip)) (define (next-token) (get-token ip))

Loading…
Cancel
Save