Function: antlr-makefile-insert-variable

antlr-makefile-insert-variable is a byte-compiled function defined in antlr-mode.el.gz.

Signature

(antlr-makefile-insert-variable NUMBER PRE POST)

Documentation

Insert Makefile variable numbered NUMBER according to specification.

Also insert strings PRE and POST before and after the variable.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/antlr-mode.el.gz
;;;===========================================================================
;;;  Makefile creation
;;;===========================================================================
;; This whole section is ANTLR-v2 specific.

(defun antlr-makefile-insert-variable (number pre post)
  "Insert Makefile variable numbered NUMBER according to specification.
Also insert strings PRE and POST before and after the variable."
  (let ((spec (cadr antlr-makefile-specification)))
    (when spec
      (insert pre
	      (if number (format (cadr spec) number) (car spec))
	      post))))