uahgi2/tokenizer.rkt
Tan Kian-ting 1b43574c01
Some checks are pending
CI / Build on Racket 'stable' (BC) (push) Waiting to run
CI / Build on Racket 'stable' (CS) (push) Waiting to run
CI / Build on Racket 'current' (BC) (push) Waiting to run
CI / Build on Racket 'current' (CS) (push) Waiting to run
remove uahgi-ng/
2025-10-07 01:37:09 +08:00

9 lines
No EOL
213 B
Racket

#lang racket/base
(require "lexer.rkt" parser-tools/lex racket/port)
(define (make-tokenizer ip [path #f])
(port-count-lines! ip)
(file-path path)
(looping-lex (port->string ip)))
(provide make-tokenizer)