On Thu, Jul 20, 2017 at 11:00 PM,  <peter2...@gmail.com> wrote:
> Hi everyone, as title, I want to use the C/C++ to research the Gecko-dev html 
> parser.
> Is it possible to build the Gecko-dev html parser?
>
> https://github.com/mozilla/gecko-dev/tree/e9fa5c772abe4426c5e33ffe61c438f75f990aca/parser

What kind of research?

That directory as a whole can't be used outside the context of Gecko.

However, the core parts of both the HTML parser and the XML parser are
available separately.

The core of the HTML parser is written in Java (there's a translator
program the translates it into C++ for use in Gecko) and can be run
(as Java) in isolation of Gecko:
https://hg.mozilla.org/projects/htmlparser/

In theory, it would be possible to edit the translator to support a
non-Gecko translation target alongside the Gecko-coupled target, but
that hasn't happened because first I had other stuff to do and then
https://github.com/google/gumbo-parser showed up and ended the demand
for a standalone C++ translation.

The core of the XML parser is expat, which, of course, is available as
an independent piece of software.

-- 
Henri Sivonen
hsivo...@hsivonen.fi
https://hsivonen.fi/
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to