(advance-stream _ state stream reject-value)
(find _ state stream)
(start _ initial-value)
Returns a start state for the automaton, with the reduction value set to initial-value
.
Returns a start state for the automaton, with the reduction value set to `initial-value`.
(parse-automata s)
Takes either an input, automaton, or sequence of automatons and inputs, and returns their concatenation.
Takes either an input, automaton, or sequence of automatons and inputs, and returns their concatenation.
(precompile fsm)
Takes an fsm, and returns a data structure where states are represented by
numbers, and the provided keys are :accept, :state->input->state,
and :state->input->actions. The start state will always be 0
.
Takes an fsm, and returns a data structure where states are represented by numbers, and the provided keys are :accept, :state->input->state, and :state->input->actions. The start state will always be `0`.
(start _ initial-value)
Returns a start state for the automaton, with the reduction value set to initial-value
.
Returns a start state for the automaton, with the reduction value set to `initial-value`.
(states fsm)
Returns a list of states for a precompiled automaton
Returns a list of states for a precompiled automaton
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close