|
From: | Juergen Sauermann |
Subject: | Re: [Bug-apl] )HELP ... |
Date: | Tue, 18 Apr 2017 13:54:39 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 |
Hi, as some of you may have noticed in the GNU APL source code, I am a big fan of Doxygen. The ⍝⍝ idea adopts the practice of Doxygen to repeat the last character of comment markers in a language (Doxyge supports several languages today, but not (yet) APL). In C we have short (1-line) // comments and long (1 or more line) /* .. */ comments. The corresponding Doxygen comments are therefore /// (short) and /** ... */ (long). Since APL has no multiline comments we have only ⍝ and then ⍝⍝ would be the corresponging Doxyhen marker. If course we can make the )HELP mechanism tolerant to support different markers at the same time. But the rules should be understoof and fixed before I start with the implementation. What I don't like is when the start marker is the same as the end marker, because it introduces useless error cases (like missing end marker). I would also argue that we should separate two things: (1) the distinction between code extraction comments and normal comments, and (2) the tagging inside a code extraction comment. (1) should follow the language (i.e. APL) rules while (2) follows the code extraction rules. Following that would make: ⍝ Begin a transaction. a normal comment. BTW for those of you looking for coding tasks, contributing APL support to Doxygen would be a useful thing to do. I felt like doing that myself, but I haven't found the time to do it yet. Best Regards, Jürgen Sauermann Which would make . a start/end marker. On 04/18/2017 04:56 AM, Elias Mårtenson
wrote:
|
[Prev in Thread] | Current Thread | [Next in Thread] |