Liking cljdoc? Tell your friends :D

strojure.parsesso.impl.state


init-stateclj/s

(init-state input pos user)

Returns new instance of parser state.

Returns new instance of parser state.
sourceraw docstring

inputclj/s

(input state)

Returns parsing state input.

Returns parsing state input.
sourceraw docstring

next-stateclj/s

(next-state state tok)
(next-state state tok user-fn)

Returns next (incremented) instance of parser state for parsed token tok.

Returns next (incremented) instance of parser state for parsed token `tok`.
sourceraw docstring

posclj/s

(pos state)

Returns parsing state position.

Returns parsing state position.
sourceraw docstring

set-inputclj/s

(set-input state input)

Returns state with input set to input.

Returns state with input set to `input`.
sourceraw docstring

set-input-posclj/s

(set-input-pos state input pos)

Returns instance of parser state with new values of input and pos.

Returns instance of parser state with new values of input and pos.
sourceraw docstring

set-posclj/s

(set-pos state pos)

Returns state with pos set to pos.

Returns state with pos set to `pos`.
sourceraw docstring

set-user-stateclj/s

(set-user-state state u)

Returns state with user state set to u.

Returns state with user state set to `u`.
sourceraw docstring

update-inputclj/s

(update-input state f)

Applies function f to the state input. Conforms result to sequence.

Applies function `f` to the state input. Conforms result to sequence.
sourceraw docstring

update-posclj/s

(update-pos state f)

Applies function f to the state pos.

Applies function `f` to the state pos.
sourceraw docstring

update-user-stateclj/s

(update-user-state state f)

Applies function f to the user state.

Applies function `f` to the user state.
sourceraw docstring

userclj/s

(user state)

Returns user state.

Returns user state.
sourceraw docstring

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

× close