[comp.sources.wanted] AWK-2-C Translator Wanted

ramsey@malathion (Ed Ramsey) (07/17/90)

I am working on a project which requires a significant amount of
"canned" post-processing to produce useful reports.  I intend to
prototype the post-processing software in AWK.  There are
numerous sites around the United States who will need to use this
post-processing software (many of whom are using PC computers)
and I was hoping there was a free or inexpensive way to translate
my AWK source into compilable C code.  Does anyone know of such a
beast?

Thanks!

-Ed

-- 

Ed Ramsey  NPIRS User Services Manager Ramsey@npirs.purdue.edu
     "You gave your life to become the person you are right now.
        Was it worth it?"    Richard Bach, *One*

walter@hpsadle.HP.COM (Walter Coole) (07/18/90)

I assume the need for compilable c is for run-time speed; you may be able to
get the effect you need by using perl, which does a run-time compile (sort
of).  I've found a substantial improvement in speed when converting from awk
to perl.  If disk space isn't a big concern, it can do a image dump to reduce
start-up time.  perl comes with a2p, a converter for awk, and s2p, for sed,
both of which have produced completely correct, if somewhat hard to read,
code for me.