Are there any good examples of the state machine implemented in Julia?

I'm looking for a link to a good example of a finite machine implemented in Julia. Are there any exist?

I know https://github.com/tensorjack/FiniteStateMachine.jl , but I'm not looking for a library that makes it easier to implement state machines (especially with the overhead that this particular implementation probably entails).

In particular, I'm wondering if there is a great example of how this is done clearly and concisely, without expressing an enum type to represent states.

+3


source to share


1 answer


There is a less than ideal state machine implementation for parsing CSV files here (and why I asked the question originally): https://github.com/benhamner/XSV.jl/blob/master/src/readxsv.jl#L28



When I get the opportunity to try to improve it (refactoring for simplicity + optimizing for speed), I'll update this answer with what I find out.

+1


source







All Articles