Parse wiki markup using state machine

I would like to analyze simple grammar such as wiki markup using state machines. I never wrote or played with him. I would like to say how to implement simple. I am thinking of using Clojure for this. My question is: can you point me to some good tutorials that are for complete beginners on this subject, such as mine?

+3
source share
3 answers

Take a look at fnparse . This is a Clojure library for functional parsing and contains a really good example of JSON parsing. Parser is another library that may also be useful. Even if you do not want to use them, they give some idea of ​​the parsing.

+1
source

Try the book Miro Sameka on state machines. Practical UML state diagrams in C / C ++

+1
source

, . Jars Clojure - Java- .

0

Source: https://habr.com/ru/post/1718060/


All Articles