[HTML5] The Java to C++ translation should preserve /* ... */ comments appearing where statements can appear
Categories
(Core :: DOM: HTML Parser, defect, P4)
Tracking
()
People
(Reporter: hsivonen, Unassigned)
Details
The translator loses all comments. Since preserving all non-JavaDoc comments is too hard, the Java grammar of the javaparser library used by the translator should be hacked to treat /* ... */ as a statement type when such a comment appears where statements are allowed. These pseudo-statements could then be translated to C++ comments.
Reporter | ||
Updated•14 years ago
|
Comment 1•5 years ago
|
||
Hi, I'd like to work on this. Can you point me to the javaparser library so I can take a look?
Reporter | ||
Comment 2•5 years ago
|
||
javaparser
is the javaparser-1.0.6
branch from https://github.com/javaparser/javaparser . It's an ancient branch, but updating isn't worth the trouble.
The repo for the HTML parser and the translator is https://hg.mozilla.org/projects/htmlparser/
See https://searchfox.org/mozilla-central/source/parser/html/java/README.txt for the in-tree instructions. Once you've let the makefile download the things it downloads, it probably makes sense to set up analogous build and run rules in a Java IDE such as Eclipse instead of using the makefile.
Comment 3•5 years ago
|
||
I've downloaded the source codes and run the make files. I've also located what I think is the parser for block comments. I'll take a look and start working on modifying the parser and translator.
Updated•2 years ago
|
Description
•