Changeset 38046 in project


Ignore:
Timestamp:
01/01/20 18:48:15 (6 months ago)
Author:
juergen
Message:

procedural-macros 2.0 docu

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/5/procedural-macros

    r38045 r38046  
    5050==== define-macro
    5151
    52 <macro>(define-macro (name . args)
    53          (with-explicit-renaming (c? %x ...) xpr ....))</macro>
    54 <macro>(define-macro (name . args)
    55          (with-implicit-renaming (c? %x ...) xpr ....))</macro>
    56 <macro>(define-macro (name . args) xpr ....)</macro>
    57 
    58 defines explicit- or implicit-renaming macros with body xpr ....
     52<macro>(define-macro (name . args) body )</macro>
     53
     54where body is either
     55* (with-explicit-renaming (c? %x ...) xpr . xprs)
     56* (with-implicit-renaming (c? %x ...) xpr . xprs)
     57or simply
     58* xpr . xprs
     59
     60defines an explicit- or implicit-renaming macro with body xpr ....
    5961c? is a compare-routine to handle keys and %x ... are renamed or
    6062injected symbols to be used in the body.
Note: See TracChangeset for help on using the changeset viewer.