RosettaCodeData/Task/Compiler-lexical-analyzer/Ol/compiler-lexical-analyzer-2.ol
2023-07-01 13:44:08 -04:00

5 lines
201 B
Text

(define (translate source)
(let ((stream (try-parse token-parser (str-iter source) #t)))
(for-each print (car stream))
(if (null? (force (cdr stream)))
(print 'End_of_input))))