(ensure-parsing {:keys [state] :as parser})
If the parser's state is not :parsing, short-circuits the parser so that the current state is passed through until the end.
Otherwise returns nil so that parsing will continue.
If the parser's state is not :parsing, short-circuits the parser so that the current state is passed through until the end. Otherwise returns nil so that parsing will continue.
(parse-note-rest-or-name parser character)
Parse a character that could be part of:
Parse a character that could be part of: - a variable name - a note - a rest - an instrument call
(read-character! p c)
Reads one character c
and updates parser p
.
Puts tokens on (:tokens-ch p) as they are parsed.
Reads one character `c` and updates parser `p`. Puts tokens on (:tokens-ch p) as they are parsed.
(start-parsing parser
character
token
&
[{:keys [start-char ignore-first-char buffer-first-char]}])
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close