*** empty log message ***

original commit: 2b9825793503ab18bb21fa594c6ff9cf2e0e21cd
tokens
Scott Owens 23 years ago
parent 30f960322a
commit feeea7c20f

@ -79,4 +79,4 @@
(define (calc ip) (define (calc ip)
;; Make the lex-buffer ;; Make the lex-buffer
(let ((lb (make-lex-buf ip))) (let ((lb (make-lex-buf ip)))
(calcp (lambda () (calcl lb))))) (calcp (lambda () (calcl lb)))))

@ -175,8 +175,8 @@
,(if src-pos ,(if src-pos
`(err #t (token-name tok) (token-value tok) (cadr ip) (caddr ip)) `(err #t (token-name tok) (token-value tok) (cadr ip) (caddr ip))
`(err #t (token-name tok) (token-value tok))) `(err #t (token-name tok) (token-value tok)))
(raise-read-error (format "parser: got token of unknown type ~a" (token-name tok))))))))) (raise-read-error (format "parser: got token of unknown type ~a" (token-name tok))
#f #f #f #f #f)))))))
(lambda (get-token) (lambda (get-token)
(let parsing-loop ((stack (list 0)) (let parsing-loop ((stack (list 0))
(ip (get-token))) (ip (get-token)))

Loading…
Cancel
Save