Liking cljdoc? Tell your friends :D

alda.parser.aggregate-events


add-to-bufferclj

(add-to-buffer parser event)
source

aggregate-inner-eventsclj

(aggregate-inner-events input-events)
(aggregate-inner-events [x & more] events)
source

emit-event!clj

(emit-event! {:keys [events-ch] :as parser} event)
source

ensure-parsingclj

(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.
sourceraw docstring

flush-buffer!clj

(flush-buffer! {:keys [buffer] :as parser})
source

initial-parser-stateclj

(initial-parser-state)
source

parserclj

(parser events-ch)
source

push-eventclj

(push-event {:keys [buffer] :as parser} event)
source

read-event!clj

(read-event! p e)

Reads one event t and updates parser p.

Puts events on (:events-ch p) as they are read and (possibly) aggregated.

Reads one event `t` and updates parser `p`.

Puts events on (:events-ch p) as they are read and (possibly) aggregated.
sourceraw docstring

take-chordclj

(take-chord input-events)
(take-chord [x & more] chord-events)

Given a sequence of events AFTER an initial note, takes the first N events that can form a chord with the first note.

Given a sequence of events AFTER an initial note, takes the first N events that can form a chord with the first note.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close