Hacker News new | past | comments | ask | show | jobs | submit login

I ended up using one in MaraDNS 2.0 to parse configuration files, since the C code for parsing MaraDNS 1.0 configurations files was a lot more error-prone and hard to maintain.

The state machine’s grammar is embedded in the Deadwood (MaraDNS 2 recursor) binary.

Here is a full explanation of the finite state machine, along with the actual embedded code:

https://github.com/samboy/MaraDNS/blob/master/deadwood-githu...




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: