3 ms·
what's the usecases for this parser? I'm mostly interested in writing a docstring document (like jsDoc) generator. So I care if this parser can keep comments.
by billconan 9y ago
what's the usecases for this parser?
I'm mostly interested in writing a docstring document (like jsDoc) generator. So I care if this parser can keep comments. From the readme I saw it does. But from the demo page, I checked "attach comment", but I couldn't see comments in the parsed result.
- cherow 9y agoHi. Usecases? Same as for Acorn, Esprima and other parsers. But the main goal with this one is to be as fast as possible, and optimized for all platforms including mobile and tablets. Cherow collect comments. The version before v. 1.0 also kept comment or attached node directly on the AST itself. I removed it due to perf reasons and no one - I thought at least - was using it anymore. If that is something you would need, I can add it back. Shouldn't take long.
- cherow 9y agoFeel free to open an issue ticket on the GH repo so I can track it if you want the comment attachment code added back in.