compile.el 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658
  1. ;;; srecode/compile --- Compilation of srecode template files.
  2. ;; Copyright (C) 2005, 2007-2012 Free Software Foundation, Inc.
  3. ;; Author: Eric M. Ludlam <zappo@gnu.org>
  4. ;; Keywords: codegeneration
  5. ;; This file is part of GNU Emacs.
  6. ;; GNU Emacs is free software: you can redistribute it and/or modify
  7. ;; it under the terms of the GNU General Public License as published by
  8. ;; the Free Software Foundation, either version 3 of the License, or
  9. ;; (at your option) any later version.
  10. ;; GNU Emacs is distributed in the hope that it will be useful,
  11. ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. ;; GNU General Public License for more details.
  14. ;; You should have received a copy of the GNU General Public License
  15. ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
  16. ;;; Commentary:
  17. ;;
  18. ;; Compile a Semantic Recoder template file.
  19. ;;
  20. ;; Template files are parsed using a Semantic/Wisent parser into
  21. ;; a tag table. The code therein is then further parsed down using
  22. ;; a regular expression parser.
  23. ;;
  24. ;; The output are a series of EIEIO objects which represent the
  25. ;; templates in a way that could be inserted later.
  26. (eval-when-compile (require 'cl))
  27. (require 'semantic)
  28. (require 'eieio)
  29. (require 'eieio-base)
  30. (require 'srecode/table)
  31. (require 'srecode/dictionary)
  32. (declare-function srecode-template-inserter-newline-child-p "srecode/insert"
  33. t t)
  34. ;;; Code:
  35. ;;; Template Class
  36. ;;
  37. ;; Templates describe a pattern of text that can be inserted into a
  38. ;; buffer.
  39. ;;
  40. (defclass srecode-template (eieio-named)
  41. ((context :initarg :context
  42. :initform nil
  43. :documentation
  44. "Context this template belongs to.")
  45. (args :initarg :args
  46. :documentation
  47. "List of arguments that this template requires.")
  48. (code :initarg :code
  49. :documentation
  50. "Compiled text from the template.")
  51. (dictionary :initarg :dictionary
  52. :type (or null srecode-dictionary)
  53. :documentation
  54. "List of section dictionaries.
  55. The compiled template can contain lists of section dictionaries,
  56. or values that are expected to be passed down into different
  57. section macros. The template section dictionaries are merged in with
  58. any incoming dictionaries values.")
  59. (binding :initarg :binding
  60. :documentation
  61. "Preferred keybinding for this template in `srecode-minor-mode-map'.")
  62. (active :allocation :class
  63. :initform nil
  64. :documentation
  65. "During template insertion, this is the stack of active templates.
  66. The top-most template is the 'active' template. Use the accessor methods
  67. for push, pop, and peek for the active template.")
  68. (table :initarg :table
  69. :documentation
  70. "The table this template lives in.")
  71. )
  72. "Class defines storage for semantic recoder templates.")
  73. (defun srecode-flush-active-templates ()
  74. "Flush the active template storage.
  75. Useful if something goes wrong in SRecode, and the active template
  76. stack is broken."
  77. (interactive)
  78. (if (oref srecode-template active)
  79. (when (y-or-n-p (format "%d active templates. Flush? "
  80. (length (oref srecode-template active))))
  81. (oset-default srecode-template active nil))
  82. (message "No active templates to flush."))
  83. )
  84. ;;; Inserters
  85. ;;
  86. ;; Each inserter object manages a different thing that
  87. ;; might be inserted into a template output stream.
  88. ;;
  89. ;; The 'srecode-insert-method' on each inserter does the actual
  90. ;; work, and the smaller, simple inserter object is saved in
  91. ;; the compiled templates.
  92. ;;
  93. ;; See srecode/insert.el for the specialized classes.
  94. ;;
  95. (defclass srecode-template-inserter (eieio-named)
  96. ((secondname :initarg :secondname
  97. :type (or null string)
  98. :documentation
  99. "If there is a colon in the inserter's name, it represents
  100. additional static argument data."))
  101. "This represents an item to be inserted via a template macro.
  102. Plain text strings are not handled via this baseclass."
  103. :abstract t)
  104. (defmethod srecode-parse-input ((ins srecode-template-inserter)
  105. tag input STATE)
  106. "For the template inserter INS, parse INPUT.
  107. Shorten input only by the amount needed.
  108. Return the remains of INPUT.
  109. STATE is the current compilation state."
  110. input)
  111. (defmethod srecode-match-end ((ins srecode-template-inserter) name)
  112. "For the template inserter INS, do I end a section called NAME?"
  113. nil)
  114. (defmethod srecode-inserter-apply-state ((ins srecode-template-inserter) STATE)
  115. "For the template inserter INS, apply information from STATE."
  116. nil)
  117. (defmethod srecode-inserter-prin-example :STATIC ((ins srecode-template-inserter)
  118. escape-start escape-end)
  119. "Insert an example using inserter INS.
  120. Arguments ESCAPE-START and ESCAPE-END are the current escape sequences in use."
  121. (princ " ")
  122. (princ escape-start)
  123. (when (and (slot-exists-p ins 'key) (oref ins key))
  124. (princ (format "%c" (oref ins key))))
  125. (princ "VARNAME")
  126. (princ escape-end)
  127. (terpri)
  128. )
  129. ;;; Compile State
  130. (defclass srecode-compile-state ()
  131. ((context :initform "declaration"
  132. :documentation "The active context.")
  133. (prompts :initform nil
  134. :documentation "The active prompts.")
  135. (escape_start :initform "{{"
  136. :documentation "The starting escape sequence.")
  137. (escape_end :initform "}}"
  138. :documentation "The ending escape sequence.")
  139. )
  140. "Current state of the compile.")
  141. (defmethod srecode-compile-add-prompt ((state srecode-compile-state)
  142. prompttag)
  143. "Add PROMPTTAG to the current list of prompts."
  144. (with-slots (prompts) state
  145. (let ((match (assoc (semantic-tag-name prompttag) prompts))
  146. (newprompts prompts))
  147. (when match
  148. (let ((tmp prompts))
  149. (setq newprompts nil)
  150. (while tmp
  151. (when (not (string= (car (car tmp))
  152. (car prompttag)))
  153. (setq newprompts (cons (car tmp)
  154. newprompts)))
  155. (setq tmp (cdr tmp)))))
  156. (setq prompts (cons prompttag newprompts)))
  157. ))
  158. ;;; TEMPLATE COMPILER
  159. ;;
  160. (defun srecode-compile-file (fname)
  161. "Compile the templates from the file FNAME."
  162. (let ((peb (get-file-buffer fname)))
  163. (save-excursion
  164. ;; Make whatever it is local.
  165. (if (not peb)
  166. (set-buffer (semantic-find-file-noselect fname))
  167. (set-buffer peb))
  168. ;; Do the compile.
  169. (unless (semantic-active-p)
  170. (semantic-new-buffer-fcn))
  171. (srecode-compile-templates)
  172. ;; Trash the buffer if we had to read it in.
  173. (if (not peb)
  174. (kill-buffer (current-buffer)))
  175. )))
  176. ;;;###autoload
  177. (defun srecode-compile-templates ()
  178. "Compile a semantic recode template file into a mode-local variable."
  179. (interactive)
  180. (require 'srecode/insert)
  181. (message "Compiling template %s..."
  182. (file-name-nondirectory (buffer-file-name)))
  183. (let ((tags (semantic-fetch-tags))
  184. (tag nil)
  185. (class nil)
  186. (table nil)
  187. (STATE (srecode-compile-state (file-name-nondirectory
  188. (buffer-file-name))))
  189. (mode nil)
  190. (application nil)
  191. (priority nil)
  192. (project nil)
  193. (vars nil)
  194. )
  195. ;;
  196. ;; COMPILE
  197. ;;
  198. (while tags
  199. (setq tag (car tags)
  200. class (semantic-tag-class tag))
  201. ;; What type of item is it?
  202. (cond
  203. ;; CONTEXT tags specify the context all future tags
  204. ;; belong to.
  205. ((eq class 'context)
  206. (oset STATE context (semantic-tag-name tag))
  207. )
  208. ;; PROMPT tags specify prompts for dictionary ? inserters
  209. ;; which appear in the following templates
  210. ((eq class 'prompt)
  211. (srecode-compile-add-prompt STATE tag)
  212. )
  213. ;; VARIABLE tags can specify operational control
  214. ((eq class 'variable)
  215. (let* ((name (semantic-tag-name tag))
  216. (value (semantic-tag-variable-default tag))
  217. (firstvalue (car value)))
  218. ;; If it is a single string, and one value, then
  219. ;; look to see if it is one of our special variables.
  220. (if (and (= (length value) 1) (stringp firstvalue))
  221. (cond ((string= name "mode")
  222. (setq mode (intern firstvalue)))
  223. ((string= name "escape_start")
  224. (oset STATE escape_start firstvalue)
  225. )
  226. ((string= name "escape_end")
  227. (oset STATE escape_end firstvalue)
  228. )
  229. ((string= name "application")
  230. (setq application (read firstvalue)))
  231. ((string= name "priority")
  232. (setq priority (read firstvalue)))
  233. ((string= name "project")
  234. (setq project firstvalue))
  235. (t
  236. ;; Assign this into some table of variables.
  237. (setq vars (cons (cons name firstvalue) vars))
  238. ))
  239. ;; If it isn't a single string, then the value of the
  240. ;; variable belongs to a compound dictionary value.
  241. ;;
  242. ;; Create a compound dictionary value from "value".
  243. (require 'srecode/dictionary)
  244. (let ((cv (srecode-dictionary-compound-variable
  245. name :value value)))
  246. (setq vars (cons (cons name cv) vars)))
  247. ))
  248. )
  249. ;; FUNCTION tags are really templates.
  250. ((eq class 'function)
  251. (setq table (cons (srecode-compile-one-template-tag tag STATE)
  252. table))
  253. )
  254. ;; Ooops
  255. (t (error "Unknown TAG class %s" class))
  256. )
  257. ;; Continue
  258. (setq tags (cdr tags)))
  259. ;; MSG - Before install since nreverse whacks our list.
  260. (message "%d templates compiled for %s"
  261. (length table) mode)
  262. ;;
  263. ;; APPLY TO MODE
  264. ;;
  265. (if (not mode)
  266. (error "You must specify a MODE for your templates"))
  267. ;;
  268. ;; Calculate priority
  269. ;;
  270. (if (not priority)
  271. (let ((d (expand-file-name (file-name-directory (buffer-file-name))))
  272. (sd (expand-file-name (file-name-directory (locate-library "srecode"))))
  273. (defaultdelta (if (eq mode 'default) 0 10)))
  274. ;; @TODO : WHEN INTEGRATING INTO EMACS
  275. ;; The location of Emacs default templates needs to be specified
  276. ;; here to also have a lower priority.
  277. (if (string-match (concat "^" sd) d)
  278. (setq priority (+ 30 defaultdelta))
  279. ;; If the user created template is for a project, then
  280. ;; don't add as much as if it is unique to just some user.
  281. (if (stringp project)
  282. (setq priority (+ 50 defaultdelta))
  283. (setq priority (+ 80 defaultdelta))))
  284. (message "Templates %s has estimated priority of %d"
  285. (file-name-nondirectory (buffer-file-name))
  286. priority))
  287. (message "Compiling templates %s priority %d... done!"
  288. (file-name-nondirectory (buffer-file-name))
  289. priority))
  290. ;; Save it up!
  291. (srecode-compile-template-table table mode priority application project vars)
  292. )
  293. )
  294. (defun srecode-compile-one-template-tag (tag state)
  295. "Compile a template tag TAG into a srecode template object.
  296. STATE is the current compile state as an object of class
  297. `srecode-compile-state'."
  298. (let* ((context (oref state context))
  299. (code (cdr (srecode-compile-split-code
  300. tag (semantic-tag-get-attribute tag :code)
  301. state)))
  302. (args (semantic-tag-function-arguments tag))
  303. (binding (semantic-tag-get-attribute tag :binding))
  304. (dict-tags (semantic-tag-get-attribute tag :dictionaries))
  305. (root-dict (when dict-tags
  306. (srecode-create-dictionaries-from-tags
  307. dict-tags state)))
  308. (addargs))
  309. ;; Examine arguments.
  310. (dolist (arg args)
  311. (let ((symbol (intern arg)))
  312. (push symbol addargs)
  313. ;; If we have a wrap, then put wrap inserters on both ends of
  314. ;; the code.
  315. (when (eq symbol :blank)
  316. (setq code (append
  317. (list (srecode-compile-inserter
  318. "BLANK"
  319. "\r"
  320. state
  321. :secondname nil
  322. :where 'begin))
  323. code
  324. (list (srecode-compile-inserter
  325. "BLANK"
  326. "\r"
  327. state
  328. :secondname nil
  329. :where 'end)))))))
  330. ;; Construct and return the template object.
  331. (srecode-template (semantic-tag-name tag)
  332. :context context
  333. :args (nreverse addargs)
  334. :dictionary root-dict
  335. :binding binding
  336. :code code))
  337. )
  338. (defun srecode-compile-do-hard-newline-p (comp)
  339. "Examine COMP to decide if the upcoming newline should be hard.
  340. It is hard if the previous inserter is a newline object."
  341. (while (and comp (stringp (car comp)))
  342. (setq comp (cdr comp)))
  343. (or (not comp)
  344. (require 'srecode/insert)
  345. (srecode-template-inserter-newline-child-p (car comp))))
  346. (defun srecode-compile-split-code (tag str STATE
  347. &optional end-name)
  348. "Split the code for TAG into something templatable.
  349. STR is the string of code from TAG to split.
  350. STATE is the current compile state.
  351. ESCAPE_START and ESCAPE_END are regexps that indicate the beginning
  352. escape character, and end escape character pattern for expandable
  353. macro names.
  354. Optional argument END-NAME specifies the name of a token upon which
  355. parsing should stop.
  356. If END-NAME is specified, and the input string"
  357. (let* ((what str)
  358. (end-token nil)
  359. (comp nil)
  360. (regex (concat "\n\\|" (regexp-quote (oref STATE escape_start))))
  361. (regexend (regexp-quote (oref STATE escape_end)))
  362. )
  363. (while (and what (not end-token))
  364. (cond
  365. ((string-match regex what)
  366. (let* ((prefix (substring what 0 (match-beginning 0)))
  367. (match (substring what
  368. (match-beginning 0)
  369. (match-end 0)))
  370. (namestart (match-end 0))
  371. (junk (string-match regexend what namestart))
  372. end tail name key)
  373. ;; Add string to compiled output
  374. (when (> (length prefix) 0)
  375. (setq comp (cons prefix comp)))
  376. (if (string= match "\n")
  377. ;; Do newline thingy.
  378. (let ((new-inserter
  379. (srecode-compile-inserter
  380. "INDENT"
  381. "\n"
  382. STATE
  383. :secondname nil
  384. ;; This newline is "hard" meaning ALWAYS do it
  385. ;; if the previous entry is also a newline.
  386. ;; Without it, user entered blank lines will be
  387. ;; ignored.
  388. :hard (srecode-compile-do-hard-newline-p comp)
  389. )))
  390. ;; Trim WHAT back.
  391. (setq what (substring what namestart))
  392. (when (> (length what) 0)
  393. ;; make the new inserter, but only if we aren't last.
  394. (setq comp (cons new-inserter comp))
  395. ))
  396. ;; Regular inserter thingy.
  397. (setq end (if junk
  398. (match-beginning 0)
  399. (error "Could not find end escape for %s"
  400. (semantic-tag-name tag)))
  401. tail (match-end 0))
  402. (cond ((not end)
  403. (error "No matching escape end for %s"
  404. (semantic-tag-name tag)))
  405. ((<= end namestart)
  406. (error "Stray end escape for %s"
  407. (semantic-tag-name tag)))
  408. )
  409. ;; Add string to compiled output
  410. (setq name (substring what namestart end)
  411. key nil)
  412. ;; Trim WHAT back.
  413. (setq what (substring what tail))
  414. ;; Get the inserter
  415. (let ((new-inserter
  416. (srecode-compile-parse-inserter name STATE))
  417. )
  418. ;; If this is an end inserter, then assign into
  419. ;; the end-token.
  420. (if (srecode-match-end new-inserter end-name)
  421. (setq end-token new-inserter))
  422. ;; Add the inserter to our compilation stream.
  423. (setq comp (cons new-inserter comp))
  424. ;; Allow the inserter an opportunity to modify
  425. ;; the input stream.
  426. (setq what (srecode-parse-input new-inserter tag what
  427. STATE))
  428. )
  429. )))
  430. (t
  431. (if end-name
  432. (error "Unmatched section end %s" end-name))
  433. (setq comp (cons what comp)
  434. what nil))))
  435. (cons what (nreverse comp))))
  436. (defun srecode-compile-parse-inserter (txt STATE)
  437. "Parse the inserter TXT with the current STATE.
  438. Return an inserter object."
  439. (let ((key (aref txt 0))
  440. name
  441. )
  442. (if (and (or (< key ?A) (> key ?Z))
  443. (or (< key ?a) (> key ?z)) )
  444. (setq name (substring txt 1))
  445. (setq name txt
  446. key nil))
  447. (let* ((junk (string-match ":" name))
  448. (namepart (if junk
  449. (substring name 0 (match-beginning 0))
  450. name))
  451. (secondname (if junk
  452. (substring name (match-end 0))
  453. nil))
  454. (new-inserter (srecode-compile-inserter
  455. namepart key STATE
  456. :secondname secondname
  457. )))
  458. ;; Return the new inserter
  459. new-inserter)))
  460. (defun srecode-compile-inserter (name key STATE &rest props)
  461. "Create an srecode inserter object for some macro NAME.
  462. KEY indicates a single character key representing a type
  463. of inserter to create.
  464. STATE is the current compile state.
  465. PROPS are additional properties that might need to be passed
  466. to the inserter constructor."
  467. ;;(message "Compile: %s %S" name props)
  468. (if (not key)
  469. (apply 'srecode-template-inserter-variable name props)
  470. (let ((classes (class-children srecode-template-inserter))
  471. (new nil))
  472. ;; Loop over the various subclasses and
  473. ;; create the correct inserter.
  474. (while (and (not new) classes)
  475. (setq classes (append classes (class-children (car classes))))
  476. ;; Do we have a match?
  477. (when (and (not (class-abstract-p (car classes)))
  478. (equal (oref (car classes) key) key))
  479. ;; Create the new class, and apply state.
  480. (setq new (apply (car classes) name props))
  481. (srecode-inserter-apply-state new STATE)
  482. )
  483. (setq classes (cdr classes)))
  484. (if (not new) (error "SRECODE: Unknown macro code %S" key))
  485. new)))
  486. (defun srecode-compile-template-table (templates mode priority application project vars)
  487. "Compile a list of TEMPLATES into an semantic recode table.
  488. The table being compiled is for MODE, or the string \"default\".
  489. PRIORITY is a numerical value that indicates this tables location
  490. in an ordered search.
  491. APPLICATION is the name of the application these templates belong to.
  492. PROJECT is a directory name which these templates scope to.
  493. A list of defined variables VARS provides a variable table."
  494. (let ((namehash (make-hash-table :test 'equal
  495. :size (length templates)))
  496. (contexthash (make-hash-table :test 'equal :size 10))
  497. (lp templates)
  498. )
  499. (while lp
  500. (let* ((objname (oref (car lp) :object-name))
  501. (context (oref (car lp) :context))
  502. (globalname (concat context ":" objname))
  503. )
  504. ;; Place this template object into the global name hash.
  505. (puthash globalname (car lp) namehash)
  506. ;; Place this template into the specific context name hash.
  507. (let ((hs (gethash context contexthash)))
  508. ;; Make a new context if none was available.
  509. (when (not hs)
  510. (setq hs (make-hash-table :test 'equal :size 20))
  511. (puthash context hs contexthash))
  512. ;; Put into that context's hash.
  513. (puthash objname (car lp) hs)
  514. )
  515. (setq lp (cdr lp))))
  516. (when (stringp project)
  517. (setq project (expand-file-name project)))
  518. (let* ((table (srecode-mode-table-new mode (buffer-file-name)
  519. :templates (nreverse templates)
  520. :namehash namehash
  521. :contexthash contexthash
  522. :variables vars
  523. :major-mode mode
  524. :priority priority
  525. :application application
  526. :project project))
  527. (tmpl (oref table templates)))
  528. ;; Loop over all the templates, and xref.
  529. (while tmpl
  530. (oset (car tmpl) :table table)
  531. (setq tmpl (cdr tmpl))))
  532. ))
  533. ;;; DEBUG
  534. ;;
  535. ;; Dump out information about the current srecoder compiled templates.
  536. ;;
  537. (defmethod srecode-dump ((tmp srecode-template))
  538. "Dump the contents of the SRecode template tmp."
  539. (princ "== Template \"")
  540. (princ (object-name-string tmp))
  541. (princ "\" in context ")
  542. (princ (oref tmp context))
  543. (princ "\n")
  544. (when (oref tmp args)
  545. (princ " Arguments: ")
  546. (prin1 (oref tmp args))
  547. (princ "\n"))
  548. (when (oref tmp dictionary)
  549. (princ " Section Dictionaries:\n")
  550. (srecode-dump (oref tmp dictionary) 4)
  551. ;(princ "\n")
  552. )
  553. (when (and (slot-boundp tmp 'binding) (oref tmp binding))
  554. (princ " Binding: ")
  555. (prin1 (oref tmp binding))
  556. (princ "\n"))
  557. (princ " Compiled Codes:\n")
  558. (srecode-dump-code-list (oref tmp code) " ")
  559. (princ "\n\n")
  560. )
  561. (defun srecode-dump-code-list (code indent)
  562. "Dump the CODE from a template code list to standard output.
  563. Argument INDENT specifies the indentation level for the list."
  564. (let ((i 1))
  565. (while code
  566. (princ indent)
  567. (prin1 i)
  568. (princ ") ")
  569. (cond ((stringp (car code))
  570. (prin1 (car code)))
  571. ((srecode-template-inserter-child-p (car code))
  572. (srecode-dump (car code) indent))
  573. (t
  574. (princ "Unknown Code: ")
  575. (prin1 (car code))))
  576. (setq code (cdr code)
  577. i (1+ i))
  578. (when code
  579. (princ "\n"))))
  580. )
  581. (defmethod srecode-dump ((ins srecode-template-inserter) indent)
  582. "Dump the state of the SRecode template inserter INS."
  583. (princ "INS: \"")
  584. (princ (object-name-string ins))
  585. (when (oref ins :secondname)
  586. (princ "\" : \"")
  587. (princ (oref ins :secondname)))
  588. (princ "\" type \"")
  589. (let* ((oc (symbol-name (object-class ins)))
  590. (junk (string-match "srecode-template-inserter-" oc))
  591. (on (if junk
  592. (substring oc (match-end 0))
  593. oc)))
  594. (princ on))
  595. (princ "\"")
  596. )
  597. (provide 'srecode/compile)
  598. ;; Local variables:
  599. ;; generated-autoload-file: "loaddefs.el"
  600. ;; generated-autoload-load-name: "srecode/compile"
  601. ;; End:
  602. ;;; srecode/compile.el ends here