Cool & Useful EmPy project, prior art?
peterm at resmed.com.au
Thu Sep 11 23:16:45 CEST 2003
If I understand what you want to do there is already something that does
this job for Emacs. Presumably to get it into some other target document
would require some transfer mechanism though........
Anyway, have a look at http://www.zipworld.com.au/~peterm. ELSE has a set of
language templates for Python.
If you really prefer a question/answer session (such as you describe) there
are other code template systems available for Emacs (that also come as part
of the Emacs distribution). They are template.el and skeleton.el. There are
no existing (to my knowledge) template definitions for Python with these
Emacs modes but I am sure they wouldn't be too hard to produce if you prefer
this form of interface.
"Ville Vainio" <ville.spammehardvainio at spamtut.fi> wrote in message
news:du71xunfweg.fsf at mozart.cc.tut.fi...
> I am thinking of implementing a nice little source code generation
> program with empy. I'm planning on having one directory with arbitrary
> number of templates. Templates can contain a significator as follows:
> @%promptuser ('classname',"the name of the class",'string'),('i',"some
> After choosing a template from the list, the user will be prompted for
> all variables specified in promptuser. Then, the template is expanded
> and copied to clipboard for manual pasting into the target document
> ('gclip' of win32 unxutils should work, how can I do it in python BTW?)
> What I'm planning seems to be a pretty "obvious", universally
> applicable application of empy (perhaps I should file for a patent if
> the EU chooses to shoot itself in the foot? ;-), and am wondering
> whether someone has already done such a beast? Perhaps with a GUI,
> even... I wouldn't mind doing it myself, it seems like a fun project,
> but time == money and something tried & true might already exist out
> Ville Vainio http://www.students.tut.fi/~vainio24
More information about the Python-list