是否有任何用Java编写的开源JSDoc解析器? [英] Are there any open source JSDoc parser written in Javascript?
问题描述
我正在寻找可以在我的项目中使用的JSDoc解析器.我正在寻找可以传递JSDoc注释并获得对该注释含义的结构化描述的东西.我见过的大多数工具似乎都能将JSDoc注释转换为HTML或其他格式.我正在寻找一种可以提供注释的中间表示的东西,可以将其用于其他工具.
I am looking for a JSDoc parser that I can use in my project. I am looking for something where I can pass in a JSDoc comment and receive a structured description of what that comment means. Most of the tools I have seen seem to be able to transform JSDoc comments into HTML or some other format. I am looking for something that will provide the intermediate representation of a comment that can be used to feed into other tools.
有没有我可以使用的工具或库?
Are there any tools or libraries out there that I can use?
推荐答案
Doctrine项目完全可以满足我的需求:
The Doctrine project does exactly what I am looking for:
http://eslint.org/doctrine/demo/
这篇关于是否有任何用Java编写的开源JSDoc解析器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!