Fork me on GitHub
#clojure
<
2024-02-03
>
Raghav00:02:07

Can anyone link me to the Clojure lexer/scanner? I want to see the implementation. I tried digging around in the Github source code but to no avail.

jpmonettas00:02:06

This is the code that will read from a stream of chars into Clojure forms

Raghav00:02:24

Perfect. Thank you so much!

jpmonettas00:02:49

you are welcome

hiredman01:02:19

It is more like a json decoder than a traditional lexer/scanner

thheller07:02:37

not to forget https://github.com/clojure/tools.reader, which is used by CLJS. same thing, just implemented in clj(s) and not java