Source code documentation with Doxygen http://www.Doxygen.org isn't limited to C/C#/C++ or Java. Using the FILTERS feature http://www.doxygen.org/config.html#cfg_filter_patterns a filter program can convert the programming language you are using into something like C and that would be used by DoxyGen.
https://sourceforge.net/projects/doxyf/
The filter is implemented in C++ using Flex++ and some Boost string operations. You can test how it will convert a file to C from the command-line. Try this:
cat t.q | qoxygen
for a file t.q. On Windows, you might try
type t.q | qoxygen
A context name beginning with a dot will be translated to underscore.
A function .t.f will be placed in the namespace
_t
as function f
.
A context \d .t will appear as the namespace _t
.