Liking cljdoc? Tell your friends :D

alda.parser.parse-events


alda-eventcljmultimethod

source

alda-event-with-metadataclj

(alda-event-with-metadata {:keys [position] :as event})
source

append-to-current-eventclj

(append-to-current-event {:keys [stack] :as parser} event)
source

append-to-parentclj

(append-to-parent {:keys [stack] :as parser} & [value])

Given a stack like [[:event-seq] [:note ...]],

if no value arg is provided, appends the top of the stack to the event below: [[:event-seq [:note ...]]]

if a value arg is provided, pops the stack and appends the custom value to the item below: [[:event-seq 'some-custom-value]]

Given a stack like [[:event-seq] [:note ...]],

if no `value` arg is provided, appends the top of the stack to the event
below: [[:event-seq [:note ...]]]

if a `value` arg is provided, pops the stack and appends the custom value
to the item below: [[:event-seq 'some-custom-value]]
sourceraw docstring

continue-parsing-chordclj

(continue-parsing-chord p t)
source

continue-parsing-instrument-callclj

(continue-parsing-instrument-call parser token)
source

current-eventclj

(current-event {:keys [stack] :as parser})
source

current-event-contentclj

(current-event-content {:keys [stack] :as parser})
source

current-event-typeclj

(current-event-type {:keys [stack] :as parser})
source

disambiguate-nameclj

(disambiguate-name p t)
source

emit!clj

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

emit-error!clj

(emit-error! parser e-or-msg)
source

emit-event!clj

(emit-event! 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

finish-parsingclj

(finish-parsing {:keys [stack] :as parser} token)
source

finish-parsing-cramclj

(finish-parsing-cram parser token)
source

finish-parsing-event-seqclj

(finish-parsing-event-seq parser token)
source

handle-newlineclj

(handle-newline parser token)
source

ignore-commentclj

(ignore-comment parser token)
source

initial-parser-stateclj

(initial-parser-state)
source

last-open-eventclj

(last-open-event {:keys [stack] :as parser})
source

open-current-eventclj

(open-current-event {:keys [stack] :as parser})
source

parse-accidentalsclj

(parse-accidentals parser token)
source

parse-at-markerclj

(parse-at-marker parser token)
source

parse-barlineclj

(parse-barline parser token)
source

parse-clj-exprclj

(parse-clj-expr parser token)
source

parse-colonclj

(parse-colon parser token)
source

parse-markerclj

(parse-marker parser token)
source

parse-nameclj

(parse-name parser token)
source

parse-nicknameclj

(parse-nickname parser token)
source

parse-note-lengthclj

(parse-note-length parser token)
source

parse-octave-changeclj

(parse-octave-change parser token)
source

parse-repeatclj

(parse-repeat {:keys [stack] :as parser} token)
source

parse-tieclj

(parse-tie parser token)
source

parse-voiceclj

(parse-voice parser token)
source

parserclj

(parser events-ch)
source

pop-and-emit-event!clj

(pop-and-emit-event! {:keys [stack] :as parser})
source

previous-event-contentclj

(previous-event-content {:keys [stack] :as parser})
source

previous-event-typeclj

(previous-event-type {:keys [stack] :as parser})
source

propagate-errorclj

(propagate-error parser token)

If there was an error in a previous stage of the parsing pipeline, propagate it through and stop parsing.

If there was an error in a previous stage of the parsing pipeline, propagate
it through and stop parsing.
sourceraw docstring

push-cramclj

source

push-eventclj

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

push-event-seqclj

source

push-event-whenclj

(push-event-when parser token expected-token)
source

push-instrument-callclj

(push-instrument-call {:keys [stack] :as parser})
source

push-set-variableclj

(push-set-variable parser)
source

read-token!clj

(read-token! p t)

Reads one token t and updates parser p.

Puts events on (:events-ch p) as they are parsed.

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

Puts events on (:events-ch p) as they are parsed.
sourceraw docstring

rename-current-eventclj

(rename-current-event {:keys [stack] :as parser} new-name)
source

repeatable?clj

source

start-parsing-chordclj

(start-parsing-chord parser token)
source

start-parsing-cramclj

(start-parsing-cram parser token)
source

start-parsing-event-seqclj

(start-parsing-event-seq parser token)
source

start-parsing-instrument-callclj

(start-parsing-instrument-call parser)
source

start-parsing-noteclj

(start-parsing-note {:keys [chord?] :as parser} token)
source

start-parsing-restclj

(start-parsing-rest {:keys [chord?] :as parser} token)
source

start-parsing-set-variableclj

(start-parsing-set-variable parser token)
source

token-contentclj

(token-content [_ _ content :as token])
source

token-isclj

(token-is token-type token)
source

token-positionclj

(token-position [_ [line column] _ :as token])
source

token-typeclj

(token-type token)
source

unexpected-token-errorclj

(unexpected-token-error parser token)
source

validate-variable-eventclj

(validate-variable-event var-name [line column])
source

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

× close