You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! My team is making a scripting frontend for our database at TUM and we were looking for different language parsers. The codebase is in C++, but I skimmed through meriyah and it should be feasible to rewrite in C++. The question is, we require single- and multi-line comments for type annotations and metadata. Is there a simple way to achieve it in this parser, at least JSDoc-style comments?
The text was updated successfully, but these errors were encountered:
It will be difficult.
The comments in meriyah are not parsed as normal flow of tokens (ESTree spec didn't define comment as a node). There is onComment option (or callback) but it's difficult to know surrounding JS tokens of that comment. There is also some known bugs for onComment.
Speaking about C++ JS parsers, the Chrome V8 and Safari JavaScriptCore are all native C++ parsers, and they are in much better quality than meriyah. You may have a better chance there.
Hi! My team is making a scripting frontend for our database at TUM and we were looking for different language parsers. The codebase is in C++, but I skimmed through meriyah and it should be feasible to rewrite in C++. The question is, we require single- and multi-line comments for type annotations and metadata. Is there a simple way to achieve it in this parser, at least JSDoc-style comments?
The text was updated successfully, but these errors were encountered: