This project has moved. For the latest updates, please go here.

Javascript annotations and comments

May 2, 2013 at 8:19 AM

Clearscript is working perfectly for us. Keep up the good work!
Is there any builtin way of searching and reading annotations (or perhaps comments)? (Such as JsDoc tags)

Or are all comments disregarded in scripts?

Many thanks!

May 2, 2013 at 2:20 PM
Hello Klator!

We appreciate your positive feedback!

ClearScript does not provide access to any structured representation of script code. In fact, as far as we know, none of the script engines it supports provides such access.

Therefore we recommend that you use another library for this purpose if simple string searching is insufficient. And because you have access to script engines, you can use parsing libraries written in script code! For example, Esprima is one we've used successfully.

Good luck!