[comp.emacs] Translation of GNUEmacs-Lisp expressions to awk syntax

sdl@MBUNIX.MITRE.ORG (Litvintchouk) (03/16/89)

Hello out there,

does anyone have some GNUEmacs-Lisp code that will translate a Lisp
expression to a string expression that has awk-like syntax?  That is,
take an expression like '(setq a (* b (+ c d)))
and return the string "a = b * (c + d)"   ?

Reason:  I'm trying to build an interface from GNUEmacs to Unipress'
rdb database (yeah, I know), and the database queries need to be in
awk syntax, not Emacs-Lisp syntax.

I know it's very easy to program, but it's even easier to obtain from
someone else :-)

Please reply directly to me at the following address.  Thanx.


Steven Litvintchouk
MITRE Corporation
Burlington Road
Bedford, MA  01730
(617)271-7753

ARPA:  sdl@mbunix.mitre.org
UUCP:  ...{att,decvax,genrad,ll-xn,philabs,utzoo}!linus!sdl

	"Ada came at the peak of confidence in computing.  We believe
	   the tide is now moving the other way." -- Bernard Carre,
	   University of Southampton and Program Validation, Ltd.