This may sound like a stupid question but I have a hard time figuring out how to register or import the JsAcornTreeGenerator in order to parse JS files. Before that, I tried the default parser TreeGenerators.getInstance().getTree(srcFile).getRoot(); and it gives me the No generator found for file: x.js error.
How can I parse JS files with com.github.gumtreediff.gen.jsacorn; using the default parser TreeGenerators.getInstance().getTree(srcFile).getRoot();?
Hello,
This may sound like a stupid question but I have a hard time figuring out how to register or import the
JsAcornTreeGenerator
in order to parse JS files. Before that, I tried the default parserTreeGenerators.getInstance().getTree(srcFile).getRoot();
and it gives me theNo generator found for file: x.js
error.How can I parse JS files with
com.github.gumtreediff.gen.jsacorn;
using the default parserTreeGenerators.getInstance().getTree(srcFile).getRoot();
?