5 ms·
Just for kicks, I am going to try and implement these two algorithms using using the State Machine Compiler (http://smc.sourceforge.net/ http://smc.sourceforge.
by murrayh 16y ago
Just for kicks, I am going to try and implement these two algorithms using using the State Machine Compiler (http://smc.sourceforge.net/ http://smc.sourceforge.net/). I expect that my "code" will be much less than 10,000 lines, although I don't really know how long the code SMC itself generates will be.
- astrange 16y agoIs there any advantage to SMC vs. Ragel for parsing? The code looks similar but a bit larger.
- murrayh 16y agoHeh, just what I need, a new toy to play with! I spent a few hours looking into Ragel over the weekend, and, honestly, I can't envisage how a html5 parser mostly written in Ragel would look. But I'm going to give it a crack.