• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/emacs-93/emacs/lisp/progmodes/

Lines Matching defs:compiler

227 (defcustom vhdl-compiler-alist
342 Each list entry specifies the following items for a compiler:
344 Compiler name : name used in option `vhdl-compiler' to choose compiler
356 ID string : compiler identification string (see `vhdl-project-alist')
366 generated by the compiler (used for Makefile generation)
397 A compiler is selected for syntax analysis (`\\[vhdl-compile]') by
398 assigning its name to option `vhdl-compiler'.
400 Please send any missing or erroneous compiler properties to the maintainer for
404 in the choice list of option `vhdl-compiler' by restarting Emacs."
447 (defcustom vhdl-compiler "ModelSim"
448 "*Specifies the VHDL compiler to be used for syntax analysis.
449 Select a compiler name from the ones defined in option `vhdl-compiler-alist'."
450 :type (let ((alist vhdl-compiler-alist) list)
515 Compile options : project-specific options for each compiler
516 Compiler name : name of compiler for which these options are valid
517 Compile options: project-specific compiler options
523 - Options : file-specific compiler options string
528 \(\"\\1\" inserts compiler ID string)
530 Library directory: path to library (\"\\1\" inserts compiler ID string)
532 (\"\\1\" inserts compiler ID string, \"\\2\" library name)
554 compiler compiles into (used to generate the Makefile).
558 insertion of a compiler-dependent ID string (defined in `vhdl-compiler-alist').
560 overwrite the settings of the current compiler.
562 File-specific compiler options (highest priority) overwrite project-specific
583 ,(let ((alist vhdl-compiler-alist) list)
1646 "*List of compiler directive keywords recognized for highlighting.
2052 Ignore byte-compiler warnings you might see."
2178 ;; option `vhdl-compiler' changed format
2179 (unless (stringp vhdl-compiler)
2180 (setq vhdl-compiler "ModelSim")
2181 (vhdl-warning-when-idle "Option `vhdl-compiler' has changed format; customize again"))
2231 ;; option `vhdl-compiler-alist' changed format (3.31.1)
2232 (when (= (length (car vhdl-compiler-alist)) 7)
2233 (let ((old-alist vhdl-compiler-alist)
2244 (setq vhdl-compiler-alist (nreverse new-alist)))
2245 (vhdl-warning-when-idle "Option `vhdl-compiler-alist' changed; please reset and re-customize"))
2247 ;; option `vhdl-compiler-alist' changed format (3.31.10)
2248 (when (= (length (car vhdl-compiler-alist)) 12)
2249 (let ((tmp-alist vhdl-compiler-alist))
2254 (customize-save-variable 'vhdl-compiler-alist vhdl-compiler-alist))
2256 ;; option `vhdl-compiler-alist' changed format (3.31.11)
2257 (when (= (length (car vhdl-compiler-alist)) 13)
2258 (let ((tmp-alist vhdl-compiler-alist))
2263 (customize-save-variable 'vhdl-compiler-alist vhdl-compiler-alist))
2265 ;; option `vhdl-compiler-alist' changed format (3.32.7)
2266 (when (= (length (nth 11 (car vhdl-compiler-alist))) 3)
2267 (let ((tmp-alist vhdl-compiler-alist))
2272 (customize-save-variable 'vhdl-compiler-alist vhdl-compiler-alist))
2705 (define-key vhdl-mode-map "\C-c\C-s\C-k" 'vhdl-set-compiler)
3217 (let ((comp-alist vhdl-compiler-alist) menu-list name)
3221 (cons `[,name (setq vhdl-compiler ,name)
3222 :style radio :selected (equal ,name vhdl-compiler)]
3228 ["Select Compiler..." vhdl-set-compiler t]
3231 (customize-option 'vhdl-compiler-alist) t])))
3540 ["Compiler Setup..." (customize-option 'vhdl-compiler-alist) t]
3544 (let ((comp-alist vhdl-compiler-alist) menu-list name)
3548 (cons `[,name (customize-set-variable 'vhdl-compiler ,name)
3549 :style radio :selected (equal ,name vhdl-compiler)]
3562 ["Customize Group..." (customize-group 'vhdl-compiler) t])
4448 compiler (menu, `C-c C-k'). The compiler to be used is specified by
4449 option `vhdl-compiler'. The available compilers are listed in option
4450 `vhdl-compiler-alist' including all required compilation command,
4462 customized for each compiler in option `vhdl-compiler-alist'.
4468 [-compiler compilername] [-project projectname]
4494 compiler-dependent options, exceptions and compilation directory can be
4496 `vhdl-compiler-alist'.
4722 ;; ignore any byte compiler warnings you might get here
4795 ;; set compiler
4796 ((equal option "-compiler")
4797 (vhdl-set-compiler (car command-line-args-left))
4807 '(("-compiler" . vhdl-process-command-line-option)
5051 "Regexp for compiler directive keywords.")
16131 "Return the Makefile name of the current project or the current compiler if
16134 (compiler-alist (aget vhdl-compiler-alist vhdl-compiler)))
16137 (or (nth 8 project-alist) (nth 8 compiler-alist)))
16138 (concat (nth 9 compiler-alist) "\n" (nth 6 project-alist)))))
16143 (compiler (aget vhdl-compiler-alist vhdl-compiler))
16147 (cons "\\(.*\\)" (nth 5 project)) (nth 9 compiler))
16148 (nth 6 compiler)))))
16162 (defun vhdl-set-compiler (name)
16163 "Set current compiler to NAME."
16166 (completing-read "Compiler name: " vhdl-compiler-alist nil t))))
16167 (if (assoc name vhdl-compiler-alist)
16168 (progn (setq vhdl-compiler name)
16169 (message "Current compiler: \"%s\"" vhdl-compiler))
16170 (vhdl-warning (format "Unknown compiler: \"%s\"" name))))
16178 (not (assoc (car (nth 11 (car vhdl-compiler-alist)))
16181 (let ((commands-alist vhdl-compiler-alist)
16197 (let ((commands-alist vhdl-compiler-alist)
16218 (defun vhdl-get-compile-options (project compiler file-name
16220 "Get compiler options. Returning nil means do not compile this file."
16221 (let* ((compiler-options (nth 1 compiler))
16222 (project-entry (aget (nth 4 project) vhdl-compiler))
16236 ;; insert library name in compiler-specific options
16237 (setq compiler-options
16238 (vhdl-replace-string (cons "\\(.*\\)" compiler-options)
16240 ;; insert compiler-specific options in project-specific options
16245 (concat work-library "\n" compiler-options))))
16251 (concat work-library "\n" compiler-options "\n"
16254 (or file-options project-options compiler-options)))))
16256 (defun vhdl-get-make-options (project compiler)
16258 (let* ((compiler-options (nth 3 compiler))
16259 (project-entry (aget (nth 4 project) vhdl-compiler))
16262 ;; insert Makefile name in compiler-specific options
16263 (setq compiler-options
16264 (vhdl-replace-string (cons "\\(.*\\)" (nth 3 compiler))
16266 ;; insert compiler-specific options in project-specific options
16271 (concat makefile-name "\n" compiler-options))))
16273 (or project-options compiler-options)))
16276 "Compile current buffer using the VHDL compiler specified in
16277 `vhdl-compiler'."
16281 (compiler (or (aget vhdl-compiler-alist vhdl-compiler nil)
16282 (error "ERROR: No such compiler: \"%s\"" vhdl-compiler)))
16283 (command (nth 0 compiler))
16285 (options (vhdl-get-compile-options project compiler file-name))
16293 ;; print out file name if compiler does not
16295 (when (and (= 0 (nth 1 (nth 10 compiler)))
16296 (= 0 (nth 1 (nth 11 compiler))))
16317 (compiler (or (aget vhdl-compiler-alist vhdl-compiler)
16318 (error "ERROR: No such compiler: \"%s\"" vhdl-compiler)))
16319 (command (nth 2 compiler))
16320 (options (vhdl-get-make-options project compiler))
16334 (let* ((compiler (or (aget vhdl-compiler-alist vhdl-compiler)
16335 (error "ERROR: No such compiler: \"%s\"" vhdl-compiler)))
16336 (command (nth 4 compiler)))
16370 (regexp-list (nth 12 (aget vhdl-compiler-alist vhdl-compiler)))
16394 vhdl-compiler))
16569 (compiler (aget vhdl-compiler-alist vhdl-compiler))
16570 (compiler-id (nth 9 compiler))
16574 (cons "\\(.*\\)" (or (nth 7 project) (nth 7 compiler)))
16575 compiler-id)))
16602 (insert "\n# Platform : " vhdl-compiler
16607 "\nCOMPILE = " (nth 0 compiler)
16608 "\nOPTIONS = " (vhdl-get-compile-options project compiler nil)
16652 (cons "\\(.*\\)\n\\(.*\\)" (nth 5 compiler))
16685 ;; get compiler options for this file
16687 (vhdl-get-compile-options project compiler (nth 0 rule) t))
16767 'vhdl-compiler-alist
16768 'vhdl-compiler