|
From: | Juergen Sauermann |
Subject: | Re: [Bug-apl] Free APL reference documentation, any takers? |
Date: | Tue, 11 Apr 2017 20:20:09 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 |
Hi, it would be good if someone could provide the help texts. Ideally as a macro called help_def() like this: help_def(valence, function, short_decription, long_description) with: valence: number (0 for niladic, 1 for monadic, or 2 for dyadic) function: String literal or just the text short_description: String literal or just the text long_decription: String literal or just the text Please no comma or ; at the end of the macro, and one line per macro (no \ continuation). Using a macro as opposed to instantiating struct has the advantage that it is easier to integrate into the C++ code of GNU APL. It is also easier to read and makes it possible to omit the "" (for function and short_description). Have a look at the files with extension .def in the GNU APL src directory to see how this type of macro is being used. Like src/SystemVariable.def which packs together figgerent properties of ⎕-Variables from which later on the )HELP texts for the ⎕-variables is derived. For example: help_def(1, "+B", Conjugate, "Returns the conjugate of B") help_def(2, "A+B", Add, "Returns the sum of A and B") Finally it would be good if whoever provides this is willing to release it under the GPL like all other GNU APL code. So all the help_def macros should go into a single file, say Help.def with the usual GPL text at the beginning and whoever has provided it as the Copyright holder. I will then be happy to change the )HELP command to display the texts provided. Thanks, Jürgen On 04/11/2017 04:34 PM, Alexey
Veretennikov wrote:
|
[Prev in Thread] | Current Thread | [Next in Thread] |