define-syntax 
Author Message
 define-syntax

SLIB seems to rely heavily on define-syntax (YASOS for example).
Is there source available for define-syntax runnable on SCM?

Regards
Mike Thomas.



Mon, 14 Aug 1995 16:50:47 GMT  
 define-syntax

   SLIB seems to rely heavily on define-syntax (YASOS for example).

Only 4 out of 60 library files use R4RS macros.  I guess use is in the
eye of the user.

   Is there source available for define-syntax runnable on SCM?

The following will give you R4RS macros in your top level and loads
(slib1c5):

(require 'macro)
(require 'repl)
(repl:top-level macro:eval)

You might want to put those lines in your ScmInit.scm file in your
home directory.

Be warned, the syntactic closures macros which SLIB uses load 30 times
slower than SCM.  Syntax-case macros load even more slowy.  This can
make even an HP-700 seem slow.

It may be possibe to use SCM's low level macro facility so that this
extra overhead is incurred only for user-defined macros.  Hopefully,
someone skilled in macrology will do this.



Tue, 15 Aug 1995 11:21:52 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. is define-syntax inside define-syntax OK?

2. shadows of define and define-syntax

3. define in define-syntax

4. define-macro -> define-syntax

5. define-macro vs define-syntax

6. Macros defining macros with define-syntax

7. define-syntax must be followed by syntax-rules ??

8. unusual define-syntax syntax

9. define-syntax problem...

10. define-syntax for do

11. define-syntax

12. Where is define-syntax?

 

 
Powered by phpBB® Forum Software