WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: cppawk  (Read 577 times)

Offline mocore

  • Hero Member
  • *****
  • Posts: 509
  • ~.~
cppawk
« on: October 18, 2023, 11:47:49 AM »

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.

Offline mocore

  • Hero Member
  • *****
  • Posts: 509
  • ~.~
Re: awk pre-processor
« Reply #1 on: January 19, 2024, 04:31:06 AM »
another awk pre-processor is aok @ ttv1/aok  ~ https://github.com/ttv1/aok/
which is written in awk  8)

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

« Last Edit: January 19, 2024, 04:37:25 AM by mocore »