I would like to parse a simple grammar such as wiki markup using state machines. I have never written or played with one. I would like to lean how to implement a simple one. I am thinking of using Clojure for this. My question is can you point me to some good tutorials that are for complete newbies on this topic such as my self?
+1
A:
Try Miro Samek's Book on State Machines. Practical UML Statecharts in C/C++
simon
2009-09-18 18:52:40
A:
You should look at the state machine compiler, to avoid a lot of boring code. It will produce Jars and Clojure - Java interop is good.
daveb
2009-09-18 19:04:53
But he wants to _implement_ one, right, not just have a useable one?
Joren
2009-09-18 20:07:06
+1
A:
Take a look at fnparse. It is a Clojure library for functional parsing and contains a really good example of JSON parsing. Parser is another library that might be helpful also. Even if you don't wish to use them, they provide some great insights into parsing.
Timothy Pratley
2009-09-19 08:46:04