Is there a parser generator available that can take a Javacc grammar file (.jj) and produce a JavaScript parser instead of Java?
It seems that such a tool does not currently exist.
Alternatively, how challenging would it be to convert a .jj file into a format that ANTLR (which supports generating JavaScript parsers) can interpret?
The conversion process would be quite complex and likely require manual intervention. The level of difficulty will vary depending on the complexity of the grammar being converted.
Keep in mind that there are other parser generators capable of generating JavaScript parsers. (I won't provide specific recommendations or list them here!)
Remember, the syntax for inputting data may differ between Javacc and these alternative tools.