Liking cljdoc? Tell your friends :D

strojure.parsesso.parser-state


do-update-stateclj/s

(do-update-state f)
(do-update-state f arg)

This parser applies function f to the parser state and returns nil.

This parser applies function `f` to the parser state and returns `nil`.
sourceraw docstring

get-inputclj/s

This parser returns the current input.

This parser returns the current input.
sourceraw docstring

get-parser-stateclj/s

This parser returns the full parser state as a 'State' record.

This parser returns the full parser state as a 'State' record.
sourceraw docstring

get-user-stateclj/s

This parser returns the current user state.

This parser returns the current user state.
sourceraw docstring

set-inputclj/s

(set-input input)

This parser continues parsing with input.

This parser continues parsing with `input`.
sourceraw docstring

set-parser-stateclj/s

(set-parser-state state)

This parser set the full parser state to state.

This parser set the full parser state to `state`.
sourceraw docstring

set-user-stateclj/s

(set-user-state u)

This parser sets the user state to u

This parser sets the user state to `u`
sourceraw docstring

update-parser-stateclj/s

(update-parser-state f)

This parser applies function f to the parser state and returns modified parser state.

This parser applies function `f` to the parser state and returns modified
parser state.
sourceraw docstring

update-user-stateclj/s

(update-user-state f)

This parser applies function f to the user state. Suppose that we want to count identifiers in a source, we could use the user state as:

(bind-let [x identifier
           _ (update-user-state inc)]
  (result x))
This parser applies function `f` to the user state. Suppose that we want to
count identifiers in a source, we could use the user state as:

    (bind-let [x identifier
               _ (update-user-state inc)]
      (result x))
sourceraw docstring

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

× close