Hello Bert
(1) Thanks for sharing and using RingPM :D
When you build Ring 1.24 from source code, using ring/build/buildvc_x64.bat
You can use ringfmt directly as any other tool like ring, ring2exe, ringpm, ringrepl, etc.
(3) In RingFmt we use ring_state_stringtokens() to get the file tokens which is important for multiple reasons
* Better Performance, since this function uses Ring Scanner to get the file tokens
* Handling different Ring features like
** Multi-line Comments
** Multi-line Literals
** Separating Keywords/Operators/Identifiers/EndLines
** Executing Scanner Commands
* Reducing testing efforts where we test how RingFmt combine tokens, which reduce input/output space compared to processing source code files directly
(4) In RingFmt, we just use (stdlibcore.ring & tokenslib.ring) - No other extensions/libraries
So, building/using RingFmt is similar to other tools like Ring2EXE and RingPM
(5) Testing RingFmt requires trying it with ring/language/tests/scripts, ring/applications, ring/samples, ring/tools, PWCT2 source code, etc. This means testing different coding styles and being sure that the tool is usable with any project and doesn't generate wrong code or unacceptable format.
Summary: RingFmt development in Ring 1.24 is almost done, I expect to finish testing, add more features during the next few days. So I focus on this (Developing/Testing RingFmt) and I can't invest effort in testing other implementations.
RingFmt is already based on our efforts as a team, since I studied Bert & Azzeddine source code, and this is stated when we run RingFmt
===========================================================================
RingFmt (Source code formatter and beautifier)
===========================================================================
2025, Mahmoud Fayed <
msfcl...@yahoo.com>
Prototyping: Bert Mariani & Azzeddine Remmal===========================================================================
Greetings,
Mahmoud