Jeremy Shute wrote me to say that he like the idea of my Cog code generator enough to reimplement it in Perl: PCG :: The Perl Code Generator.

Jeremy also sent along an elisp snippet to get Emacs to run Cog interactively, handy during development of the code generators:

;; COG stuff.
(defun cog-buffer ()
  (interactive)
  (save-buffer)
  (call-process "cog.py" nil "*Messages*" nil "-r" (buffer-file-name))
  (revert-buffer nil t))
(global-set-key [f5] 'cog-buffer)
tagged: perl, cog» react

Comments

Add a comment:

name
email
Ignore this:
not displayed and no spam.
Leave this empty:
www
not searched.
 
Name and either email or www are required.
Don't put anything here:
Leave this empty:
URLs auto-link and some tags are allowed: <a><b><i><p><br><pre>.