3 ms·
Encoding parser FSMs by hand can be tedious and error prone, there's some nice tools to help you with that; I'm a huge fan of Ragel: http://www.colm.net/open-so
by zevv 6y ago
Encoding parser FSMs by hand can be tedious and error prone, there's some nice tools to help you with that; I'm a huge fan of Ragel: http://www.colm.net/open-source/ragel/ http://www.colm.net/open-source/ragel/
- 082349872349872 6y agoI sometimes wonder if replacing the hand-coded FSMs of UI ravioli callbacks with a more parser-generator-like declaration would be a cleaner approach. (or maybe it's already been done? I haven't done UI code since last century...)