(init-state input pos user)
Returns new instance of parser state.
Returns new instance of parser state.
(input state)
Returns parsing state input.
Returns parsing state input.
(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`.
(pos state)
Returns parsing state position.
Returns parsing state position.
(set-input state input)
Returns state with input set to input
.
Returns state with input set to `input`.
(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.
(set-pos state pos)
Returns state with pos set to pos
.
Returns state with pos set to `pos`.
(set-user-state state u)
Returns state with user state set to u
.
Returns state with user state set to `u`.
(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.
(update-pos state f)
Applies function f
to the state pos.
Applies function `f` to the state pos.
(update-user-state state f)
Applies function f
to the user state.
Applies function `f` to the user state.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close