English 中文(简体)
如何扩展 Doxygen 支持 Lua? 或者: 如何写入 Doxygen 过滤器?
原标题:How to extend Doxygen to support Lua? Or: how to write Doxygen filters?
  • 时间:2012-05-23 14:44:53
  •  标签:
  • lua
  • doxygen

我正在研究一个代码基数 一半是Lua,另一半是C++。我们用 Doxygen 来记录我们的 C++ 代码。

现在,我们也想用多克希根来代替卢阿部分。但多克希根缺乏对卢阿的支持。

"https://github.com/alecchen/doxygen-lua" rel="nofollow" > a project 这样的项目增加了对Doxygen的Lua支持。 它以 Perl 写成, 我理解它的作用。 它执行一个过滤器, 将 Lua 源文件转换成 Doxygen 可以分析的东西。 但是, Doxygen 似乎不承认所有功能等 。

所以,我的问题是: Doxygen对过滤器期望的格式是什么?

最佳回答

严格的答案是, 您的过滤器应该以语言 doxygen 支持来生成语法有效的输出( 您可以使用 < code> EXTENSION_ MAPING 来将您语言的文件扩展名映射为支持的语言 ) 。

由于doxygen s 解析器比较松散(这是一个词汇扫描仪,不是真正的解析器),如果你不百分之百地遵循该语言的语法规则,它可能同样有效,但是,要找出哪些偏差是允许的,如果升级为未来版本的doxygen,它可能会中断。

问题回答

暂无回答




相关问题
Is there a standard for documenting GET/POST parameters?

In a PHP project, even when front controller logic is used for the main application, there can be many stand-alone scripts, ajax snippets and so on. Is there a standardized way - either PHPDoc or ...

How to use eclox, the doxygen plugin for Eclipse

How do I get eclox working in Eclipse 3.5? I m using Ubuntu 9.04. I installed Doxygen from ubuntu repositories(version 1.5.8). Then I installed eclox on eclipse through the update site. Despite this,...

Doxyclean Error

I m trying to run doxyclean but can t get it to work, any help would be appreciated... I m running from terminal : ./doxyclean.py --input=./xml/ --output=./clean/ --name="MyProject" --phone -v I ...

Doxygen and Objective-C categories

Although the latest releases of Doxygen claim better handling of Objective-C categories, it still seems to choke on categories in my source code. I m wondering if someone has gotten it to document ...

Algorithm to parse a config file in php (Doxygen file)

I have a conf file like this: http://pastie.org/768582 and my goal is to get in an array the comments and the key/value of each keys. array( array( comment => "The PROJECT_NAME tag is a ...

热门标签