Previous: Lexical Conventions, Up: The Language


4.9 Syntax

SCM provides a native implementation of defmacro. See Defmacro.

When built with ‘-F macro’ build option (see Build Options) and ‘*syntax-rules*’ is non-false, SCM also supports [R5RS] syntax-rules macros. See Macros.

Other Scheme Syntax Extension Packages from SLIB can be employed through the use of ‘macro:eval’ and ‘macro:load’; Or by using the SLIB read-eval-print-loop:

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

With the appropriate catalog entries (see Library Catalogs), files using macro packages will automatically use the correct macro loader when ‘require’d.