Article View: gnu.emacs.help
Article #189474Gnu Emacs program for literate programming?
From: Jonathan Eunice
Date: Wed, 16 Jan 1991 04:50
Date: Wed, 16 Jan 1991 04:50
38 lines
2211 bytes
2211 bytes
In several other newsgroups I recently asked about program editors that
support a literate programming style for the C language. It should
allow me to enter pseudo-code such as
if <the device is not responding> {
<stop with device failure error>
}
then select individual pseudo-code expressions (here delimited by <>)
and edit them in native C (either by expanding the <> macro in-place or
showing the expanded phrase in a new window). The ability to switch
back and forth between pseudo-expression and C representations is
critical. Also important is the maintenance of the pseudo-expressions
as comments in program listings.
Bob Bagwill <bagwill@swe.ncsl.nist.gov> replied:
| Probably the fastest/cheapest/easiest way to get this is to see if there
| are similar GNU EMACS templates available, and change them.
This sounded right. An extensible editor would be the perfect place to
implement my desired tool, and I know of language-sensitive macros for
EMACS. Unfortunately, I am not at the moment a GNU EMACS user (or
programmer), so I don't know where to look for such templates.
Moreover, I don't know how easy/difficult or feasible/infeasible this
would be to accomplish.
I'm looking for
1. programs/templates that might be appropriate starting points,
2. advice on the feasibility of the suggestion, and
3. advice on how to go about the task.
Please email to jonathan@cs.pitt.edu. Thanks.
Technical Details
Message-ID:
<9734@pitt.UUCP>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!zephyr.ens.tek.com!uw-beaver!milton!dali.cs.montana.edu!mintaka!yale!ox.com!caen!zaphod.mps.ohio-state.edu!rpi!ispd-newsserver!kodak!rochester!pt.cs.cmu.edu!dsl.pitt.edu!pitt!cs.pitt.edu!jonathanShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103b8b,250dc1a9c11c7535,start X-Google-Attributes: gid103b8b,public X-Google-ArrivalTime: 1991-01-21 16:48:52 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!zephyr.ens.tek.com!uw-beaver!milton!dali.cs.montana.edu!mintaka!yale!ox.com!caen!zaphod.mps.ohio-state.edu!rpi!ispd-newsserver!kodak!rochester!pt.cs.cmu.edu!dsl.pitt.edu!pitt!cs.pitt.edu!jonathan From: jonathan@cs.pitt.edu (Jonathan Eunice) Newsgroups: gnu.emacs.help Subject: Gnu Emacs program for literate programming? Message-ID: <9734@pitt.UUCP> Date: 16 Jan 91 04:50:56 GMT Sender: news@pitt.UUCP Reply-To: jonathan@cs.pitt.edu (Jonathan Eunice) Distribution: gnu Organization: University of Pittsburgh Computer Science Lines: 38