Re:The HTML5 Parsing Algorithm
by murrayh on Thursday August 05, 2010 @09:08PM
(#1579865)
Just for kicks, I am going to try and implement these two algorithms using using the State Machine Compiler (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.
[ Parent
| on HN ]
Is there any advantage to SMC vs. Ragel for parsing? The code looks similar but a bit larger.
Heh, 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.