logoalt Hacker News

galaxyLogictoday at 7:01 AM1 replyview on HN

Does oxc-parser make it easy to remove comments from JavaScript?

In other words does it treat comments as syntactic units, or as something that can be ignored wince they are not needed by the "next stage"?

The reason to find out what the comments are is of course to make it easy to remove them.


Replies

xixixaotoday at 7:27 AM

Should be easy with any standard parser. See astexplorer.net