source: project/wiki/man/4/Unit expand @ 15295

Last change on this file since 15295 was 15295, checked in by felix winkelmann, 12 years ago

merged with manual from release branch

File size: 1.2 KB
Line 
1[[tags: manual]]
2[[toc:]]
3
4== Unit expand
5
6This unit has support for syntax- and module handling. This unit is used
7by default, unless the program is compiled with the {{-explicit-use}}
8option.
9
10=== Macros
11
12==== get-line-number
13
14 [procedure] (get-line-number EXPR)
15
16If {{EXPR}} is a pair with the car being a symbol, and line-number
17information is available for this expression, then this procedure returns
18the associated line number. If line-number information is not available,
19then {{#f}} is returned.  Note that line-number information for
20expressions is only available in the compiler.
21
22==== expand
23
24 [procedure] (expand X)
25
26If {{X}} is a macro-form, expand the macro (and repeat expansion
27until expression is a non-macro form).  Returns the resulting expression.
28
29==== syntax-error
30
31 [procedure] (syntax-error [LOCATION] MESSAGE ARGUMENT ...)
32
33Signals an exception of the kind {{(exn syntax)}}. Otherwise identical to
34{{error}}.
35
36
37==== er-macro-transformer
38
39  [procedure] (er-macro-transformer TRANSFORMER)
40
41This procedure does nothing and is available for writing low-level
42macros in a more portable fashion, without hard-coding the signature
43of a transformer procedure.
44
45
46---
47Previous: [[Unit library]]
48
49Next: [[Unit data-structures]]
Note: See TracBrowser for help on using the repository browser.