[Doxygen-develop] Doxygen support for the programming language MuPAD
Brought to you by:
dimitri
From: Nicolas M. T. <nt...@us...> - 2001-12-10 13:53:38
|
Dear doxygen developers, I am currently looking for a tool for documenting a library written in the MuPAD language (this is a computer algebra system, similar to maple). Doxygen seems to do pretty much all I need! So here is my question: how difficult is it to add support in doxygen for new programming languages ? I guess I would basicaly need to write a parser description in src/mupad.ll starting with the java.ll example. Any comments, details, descriptions of pitfall, or even better a basic template for such a parser would be warmly welcome. See below for a rather complete example of MuPAD code with the corresponding C++ code. Thanks in advance! Best regards, Nicolas References: - mupad-combinat.sourceforge.net - www.mupad.de --------------------------------------------------------------------------- /** A domain for partitions **/ domain combinat::partitions // this declares factorial as a public method interface := { hold(factorial) }; /// the factorial function factorial := proc(n: DOM_INT) : DOM_INT begin if n=0 then 1 else n*dom::factorial(n-1); end_if; end_proc; ... begin end_domain --------------------------------------------------------------------------- /** A class for partitions **/ class combinat::partitions { public: /// the factorial function int factorial(int n) { if (n==0) { return(1); else { return(factorial(n-1)); } } private: ... } ------------------------------------------------------------------------------ -- Nicolas M. Thiéry "Isil" <nt...@us...> http://www.mines.edu/~nthiery/ LaPCS, Université Claude Bernard Lyon I, Bâtiment recherche [B] 50, avenue Tony-Garnier, Domaine de Gerland, 69366 Lyon Cedex 07 tel: +33 4 37 28 74 51 fax: +33 4 72 43 10 54 |