Liking cljdoc? Tell your friends :D

automat.compiler.core


->automaton-stateclj/s

(->automaton-state fsm x)
source

advance-streamclj

(advance-stream _ state stream reject-value)
source

compiled-automaton?clj/s

(compiled-automaton? x)
source

CompiledAutomatonStatecljs

source

findclj

(find _ state stream)
source

ICompiledAutomatoncljsprotocol

advance-streamcljs

(advance-stream _ state stream reject-value)

findcljs

(find _ state stream)

startcljs

(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`.
source

parse-automataclj/s

(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.
sourceraw docstring

precompileclj/s

(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`.
sourceraw docstring

precompiled-automaton?clj/s

(precompiled-automaton? fsm)
source

sort-actionsclj/s

(sort-actions fsm comparator)
source

startclj

(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`.
sourceraw docstring

statesclj/s

(states fsm)

Returns a list of states for a precompiled automaton

Returns a list of states for a precompiled automaton
sourceraw docstring

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

× close