On 05/28/2010 03:04 PM, Mariano Montone wrote:
Hi!
I'm considering writing an HTML 5 parser for Common Lisp.
Nice :)
How do you think I should do it?
Should I have a look to the spec
http://dev.w3.org/html5/spec/Overview.html#parsing
and follow that algorithm?
Should I try to understand html5lib python code and port it?
I recommend reading the spec and implementing from that; it is described
as an imperative algorithm so it won't quite translate directly into
lisp, but it should be clear what is expected. What html5lib does
provide is a large number of testcases which I recommend using to verify
your implementation does the right thing. The format is documented at [1]
[1] http://wiki.whatwg.org/wiki/Parser_tests
--
You received this message because you are subscribed to the Google Groups
"html5lib-discuss" group.
To post to this group, send an email to html5lib-disc...@googlegroups.com.
To unsubscribe from this group, send email to
html5lib-discuss+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/html5lib-discuss?hl=en-GB.