Function: antlr-run-tool

antlr-run-tool is an interactive and byte-compiled function defined in antlr-mode.el.gz.

Signature

(antlr-run-tool COMMAND FILE &optional SAVED)

Documentation

Run Antlr took COMMAND on grammar FILE.

When called interactively, COMMAND is read from the minibuffer and defaults to antlr-tool-command with a computed "-glib" option if necessary.

Save all buffers first unless optional value SAVED is non-nil. When called interactively, the buffers are always saved, see also variable antlr-ask-about-save.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/antlr-mode.el.gz
(defun antlr-run-tool (command file &optional saved)
  "Run Antlr took COMMAND on grammar FILE.
When called interactively, COMMAND is read from the minibuffer and
defaults to `antlr-tool-command' with a computed \"-glib\" option if
necessary.

Save all buffers first unless optional value SAVED is non-nil.  When
called interactively, the buffers are always saved, see also variable
`antlr-ask-about-save'."
  (interactive (antlr-run-tool-interactive))
  (or saved (save-some-buffers (not antlr-ask-about-save)))
  (let ((default-directory (file-name-directory file)))
    (compilation-start (concat command " " (file-name-nondirectory file))
		       nil (lambda (_mode-name) "*Antlr-Run*"))))