Hello.
I read in the to-do list than a planned feature is a indent-like source code formatter for Pascal. I have three questions:
1. Is anybody who is doing this job? I saw something like this here: http://www.gnu-pascal.de/crystal/gpc/en/mail4247.html?pos=13294915#13294915 but it seems to be unfinished, and it seems to be very long time ago (in 2000). 2. What are the multi-styles for this (in the c indent program called indent, I know that there are a lot of styles: k&r, gnu, berkeleyetc...) 3. How can i contribute to GPC? I haven't tryed to contribute to GNU software yet.
I wrote a pascal indent (with some modes, (unix/dos) and with output file), but it has only one mode (yet).
Regards,
Pripoae Teodor Anton, pripoae_teodor_anton@yahoo.com
Hi,
There is a program like the one you are looking for. Its name is pasind and it works under dos, windows and unix. It is open source software and it works pretty well. I got the sources tarball along with a fairly complete HTML documentation some years ago and still use it. I do not remember the site where I found it but you should be able to fetch it by searching on the net.
Regards
Pascal
-----Message d'origine----- De : gpc-owner@gnu.de [mailto:gpc-owner@gnu.de] De la part de pripoae teodor anton Envoyé : July 03, 2008 14:44 À : gpc@gnu.de Objet : Indent program for the GPC
Hello.
I read in the to-do list than a planned feature is a indent-like source code formatter for Pascal. I have three questions:
1. Is anybody who is doing this job? I saw something like this here: http://www.gnu-pascal.de/crystal/gpc/en/mail4247.html?pos=13294915#13294915 but it seems to be unfinished, and it seems to be very long time ago (in 2000). 2. What are the multi-styles for this (in the c indent program called indent, I know that there are a lot of styles: k&r, gnu, berkeleyetc...) 3. How can i contribute to GPC? I haven't tryed to contribute to GNU software yet.
I wrote a pascal indent (with some modes, (unix/dos) and with output file), but it has only one mode (yet).
Regards,
Pripoae Teodor Anton, pripoae_teodor_anton@yahoo.com
pripoae teodor anton wrote:
- What are the multi-styles for this (in the c indent program called indent, I know that there are a lot of styles: k&r, gnu, berkeleyetc...)
Of course, every programmer has his/her own style, and any good formatter must support them all. ;-) That's why (GNU) indent has a lot of options.
For a start, have a look at http://www.gnu-pascal.de/h-gpcs-en.html. But of course, not every programmer, not even everyone on this list, will agree with it.
- How can i contribute to GPC? I haven't tryed to contribute to GNU software yet.
For a program such as this that's not directly tied to the compiler, it's quite easy. During development, you can just publish it on your website or anywhere you like. If you prefer, we can get you a (ssh/scp/sftp) account to put it in the "Contrib" section on the GPC home page. When it's finished, we can see how to best integrate it with GPC.
In any case, if you want it to be an official GPC contribution, the license of the program must be the GNU GPL (version 3 or later).
Frank
http://www.standardpascal.org/source.html
pripoae teodor anton wrote:
Hello.
I read in the to-do list than a planned feature is a indent-like source code formatter for Pascal. I have three questions:
- Is anybody who is doing this job? I saw something like this here:
http://www.gnu-pascal.de/crystal/gpc/en/mail4247.html?pos=13294915#13294915 but it seems to be unfinished, and it seems to be very long time ago (in 2000). 2. What are the multi-styles for this (in the c indent program called indent, I know that there are a lot of styles: k&r, gnu, berkeleyetc...) 3. How can i contribute to GPC? I haven't tryed to contribute to GNU software yet.
I wrote a pascal indent (with some modes, (unix/dos) and with output file), but it has only one mode (yet).
Regards,
Pripoae Teodor Anton, pripoae_teodor_anton@yahoo.com