Am 15/01/2022 um 02:20 schrieb Rick C:
> On Friday, January 14, 2022 at 1:53:48 PM UTC-5, Howerd wrote:
>> Hi Forthers,
>>
>> I have just updated Cweed4 to V4.04 available here :
>>
>>
https://www.inventio.co.uk/Cweedexe.htm
>>
>> Enjoy
>> Howerd :-)
>
> How is this different from the many pretty print programs around? Or do I not understand what it is doing?
>
Hi Rick,
I think it is the only one written in Forth.
The other differences are probably (i.e. without looking at all the
other Open Source ones available) :
1. Programmable by a run-time loaded Forth script file.
2. Supports Barr 2018 Coding standard white space rules (not 100%, but
to a useful extent).
3. Checks for Lint command violations.
4. Creates a report of violations and information in all sub-folders.
5. Converts and old-school Forth Block file into text file (ctrlR).
6. Displays the CRC32 MD5 and NumName for each file.
The "NumName" is a pair of English words derived from 30 bits of the MD5
hash of the file. NumName is a horribly ugly creation, but I find it too
useful to delete it and pretend it never happened. It is ugly because it
produces two English words while completely ignoring their meaning. YMMV.
Basically, Cweed4 is an experiment in specifying a coding standard as an
executable program.
The history is that every time I have a needed to modify a C/C++ file,
or folder of files, according to some coding standard (every company
seems to have their own) I tack some more code on to Cweed4.
The Cweed4 distribution comes complete with Win32Forth V6.03H (the
latest anti-virus-friendly version), including *all* source files, so
you can modify and rebuild *everything* (although the Kernel requires VS
2006 to rebuild it).
Cweed4 is also great if you want to understand the C language syntax.
Cheers,
Howerd