HTML XML DTD

Milian Wolff mail at milianw.de
Thu Mar 18 22:03:36 UTC 2010


On Thursday 18 March 2010 21:33:35 Ruan Strydom wrote:
> I finally managed to get time to do some more hacking and write the
> lexer/parser for xml/html/dtd (one lexer and parser for all). (I really
> need to start documenting everything)
> 
> I'm not sure if my PG-QT grammar / structure is correct but it seems to
> work like I intended it too (initially anyway). ie: it parsed yahoo.com
> (1246 line html) and others with no visible problems and of coarse the
> unit tests.
> 
> DTD is a bit doggy still and not fully implemented, it works but on a
> limited number of predefined tests. Going to do more random complex
> testing now.
> 
> The questions:
> 
> 1) The parser only builds up an sequential array of elements (ast nodes),
> except for doctype where the definitions is contained inside the doctype
> ast node (in a dtd file it a an array again, the definitions is not within
> a doctype element). Does this sound correct?
> (ie <tag> <othertag/> </tag> <tag/> will be 4 ast nodes in the array not
> three and one with a child)
> 
> 2) I have 2 first/first and 1 first/last  conflict, but it appears to work
> fine. The PG-QT web page says that can be ignored in some cases?
> 
> 3) Can I commit it so long and can someone have a look at the grammar. I do
> not want to carry on if it is broken, since a lot of code (builders as I
> understand it) will depend on it.

Just a quick blurb:

since I'll probably / hopefully spent some time during GSOC on Quanta, I'd be 
__really__ interested into your code and hop to contribute to the plugin.

Cya in a few days, I'm eagerly awaitung your commits :)


-- 
Milian Wolff
mail at milianw.de
http://milianw.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20100318/857a93d8/attachment.sig>


More information about the KDevelop-devel mailing list