Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Parsing wiki markup using a state machine

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?

like image 726
Hamza Yerlikaya Avatar asked Jan 01 '26 16:01

Hamza Yerlikaya


1 Answers

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.

like image 87
Timothy Pratley Avatar answered Jan 03 '26 05:01

Timothy Pratley



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!