1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-07-02 07:40:30 +02:00
guile/module
Brian Templeton 7d6816f0c7 store special operators in the function slot
If the function slot of a symbol contains a pair with `special-operator'
in the car and a procedure in the cdr, the procedure is called to
compile the form to Tree-IL. This is similar to other Emacs Lisp
implementations, in which special operators are subrs.

* module/language/elisp/compile-tree-il.scm: Restructured to store
  special operator definitions in the function slot. Import `(language
  elisp runtime)' for `defspecial'. Export special operators so that
  `(language elisp runtime function-slot)' can re-export them.

  (backquote?): Removed; the backquote symbol is defined as a special
  operator, so it's no longer used in `compile-pair'.

  (is-macro?, get-macro): Replaced by `find-operator'.
  (find-operator): New procedure.

  (compile-progn, compile-if, compile-defconst, compile-defvar,
  compile-setq, compile-let, compile-lexical-let, compile-flet,
  compile-let*, compile-lexical-let*, compile-flet*,
  compile-without-void-checks, compile-with-always-lexical,
  compile-guile-ref, compile-guile-primitive, compile-while,
  compile-function, compile-defmacro, compile-defun, #{compile-`}#,
  compile-quote): New special operators with definitions taken from the
  pmatch form in `compile-pair'. There is no special operator `lambda';
  it is now a macro, as in other Elisp implementations.

  (compile-pair): Instead of directly compiling special forms, check for
  a special operator object in the function slot.

* module/language/elisp/runtime.scm: Export `defspecial'.
  (make-id): New function.
  (built-in-macro): Prefix macros with `macro-'.
  (defspecial): New syntax.

* module/language/elisp/runtime/function-slot.scm: Import and re-export
  special operators. Rename imported special operators and macros to
  remove prefixes. Re-export new macro `lambda'.

* module/language/elisp/runtime/macros.scm (macro-lambda): New Elisp
  macro.
2010-08-13 16:35:51 -04:00
..
ice-9 Check for go/scm mtime ordering rather than equality. 2010-07-26 19:38:52 +02:00
language store special operators in the function slot 2010-08-13 16:35:51 -04:00
oop Update #:procedure method for <applicable-struct> 2010-06-29 11:43:04 +02:00
rnrs Explicit definitions for memp' and assp' in `(rnrs list)'; the predicate 2010-08-08 20:23:14 -04:00
scripts [maint] Remove unused script guile-doc-snarf. 2010-07-22 21:10:38 +02:00
srfi Start rewriting SRFI-1 in Scheme. 2010-07-21 01:07:56 +02:00
sxml sxml-match: Always use the same prompt tag. 2010-07-15 23:12:57 +02:00
system fix stack narrowing for tail-call to throw 2010-08-06 17:39:51 +02:00
texinfo scm_i_program_properties is internal; just use procedure-properties 2010-04-17 15:21:08 +02:00
Makefile.am add new elisp files to module/Makefile.am 2010-08-13 16:35:51 -04:00
rnrs.scm letrec* in docs, and some r6rs fixes 2010-08-06 11:52:27 +02:00
statprof.scm statprof bugfixes 2010-01-27 21:52:05 +01:00
texinfo.scm Remove unused top-level variables. 2010-01-11 01:21:14 +01:00