Tiny Core Linux

Off-Topic => Off-Topic - Tiny Core Lounge => Topic started by: mocore on October 18, 2023, 02:47:49 PM

Title: cppawk
Post by: mocore on October 18, 2023, 02:47:49 PM

just discovered ... now wandering if any tc'ers
know of / use or have used cppawk

 https://www.kylheku.com/cgit/cppawk/about/
Quote
cppawk is a tiny shell script that is used like awk. It invokes the C preprocessor (GNU cpp) on the Awk code and calls Awk on the result.
Title: Re: awk pre-processor
Post by: mocore on January 19, 2024, 07:31:06 AM
another awk pre-processor is aok @ ttv1/aok  ~ https://github.com/ttv1/aok/
which is written in awk  8)

Quote from: https://github.com/ttv1/aok/blob/master/docs/index.md
AOK is a pre-processor to AWK code that adds:

    Abstract data types;
    Easy methods to list the attributes and operations of that data;
    Object constructors;
    Nested object constructors.
    Multi-line quotes
    A dot notation for easy reference to nested structures.


the repo also includes some examples/tests and documentation

and some awk tips  https://github.com/ttv1/aok/blob/master/docs/codingtips.md