Awk-compiler

Jim Harkins jharkins at sagpd1.UUCP
Tue Mar 27 12:08:24 AEST 1990


In article <338774 at neabbs.UUCP> aerts at neabbs.UUCP (AD AERTS) writes:
>
>Has anyone ever seen an AWK-compiler? AWK-to-C would be fine too.

Mail bounced so...

Look into the document "A supplemental document for awk" subtitled "things
Al, Pete, and Brian didn't mention much".  I snarfed it off the net a few
years ago and it's probably archived somewhere.  Anyway, it says

-- begin direct quoting -- 

2.5 Script "Compilation"
[It is likely that this does not work at most sites.  If it does not, the
following will probably not be of interest to the casual user.]

The command

	awk -S -f script.awk

produces a file named awk.out.  This is a core image of awk after parsing
the file script.awk.  The command 

	awk -Rawk.out datafile

causes awk.out to be applied to datafile (or the standard input if no file
is given).  Unfortunately, the way this is implemented requires some special
action on the part of the person installing awk.

-- end quoting --

It's a good document, and I suspect I'm going to get bazillions of requests to
post it :-)


-- 
jim		jharkins at sagpd1

We are all aware of the high cost of alcohol abuse.  To help solve this problem
take this signature to your local liquor store for $1.00 off your next purchase.



More information about the Comp.unix.questions mailing list