Function: antlr-show-makefile-rules

antlr-show-makefile-rules is an autoloaded, interactive and byte-compiled function defined in antlr-mode.el.gz.

Signature

(antlr-show-makefile-rules)

Documentation

Show Makefile rules for all grammar files in the current directory.

This command is for ANTLR v2 grammars only.

If the major-mode of the current buffer has the value makefile-mode, the rules are directory inserted at point. Otherwise, a *Help* buffer is shown with the rules which are also put into the kill-ring for C-y (yank).

This command considers import/export vocabularies and grammar inheritance and provides a value for the "-glib" option if necessary. Customize variable antlr-makefile-specification for the appearance of the rules.

If the file for a super-grammar cannot be determined, special file names are used according to variable antlr-unknown-file-formats and a commentary with value antlr-help-unknown-file-text is added. The
*Help* buffer always starts with the text in antlr-help-rules-intro.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/antlr-mode.el.gz
;;;###autoload
(defun antlr-show-makefile-rules ()
  "Show Makefile rules for all grammar files in the current directory.
This command is for ANTLR v2 grammars only.

If the `major-mode' of the current buffer has the value `makefile-mode',
the rules are directory inserted at point.  Otherwise, a *Help* buffer
is shown with the rules which are also put into the `kill-ring' for
\\[yank].

This command considers import/export vocabularies and grammar
inheritance and provides a value for the \"-glib\" option if necessary.
Customize variable `antlr-makefile-specification' for the appearance of
the rules.

If the file for a super-grammar cannot be determined, special file names
are used according to variable `antlr-unknown-file-formats' and a
commentary with value `antlr-help-unknown-file-text' is added.  The
*Help* buffer always starts with the text in `antlr-help-rules-intro'."
  (interactive)
  (unless (eq antlr-tool-version 'antlr-v2)
    (user-error (substitute-command-keys
                 "Run \\[antlr-run-tool] with option \"-depend\" instead")))
  (if (null (derived-mode-p 'makefile-mode))
      (with-output-to-temp-buffer (help-buffer)
        (save-excursion (antlr-insert-makefile-rules)))
    (push-mark)
    (antlr-insert-makefile-rules t)))