a basic lisp reader for tracking parens and token states
a basic lisp reader for tracking parens and token states
(escaping? stack)
Next character will be escaped.
Next character will be escaped.
(in-code? stack)
Next character is inside actual code.
Next character is inside actual code.
(in-comment? stack)
Next character is inside a comment.
Next character is inside a comment.
(in-str? stack)
Next character is inside a string.
Next character is inside a string.
(prev-ch stack)
(push-char state)
Update the delimiter stack with the given character.
Update the delimiter stack with the given character.
(valid-closer? stack ch)
Determine if the given closing delimiter can be used next, assuming we are inside code.
Determine if the given closing delimiter can be used next, assuming we are inside code.
(whitespace? ch)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close