diff options
author | Ludovic Courtès <ludo@gnu.org> | 2016-09-09 22:43:41 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2016-09-09 23:54:43 +0200 |
commit | ebdfd776f4504c456d383ee8afa59fc6fdfc6756 (patch) | |
tree | 49cdbe2d4e8c2f272984698679993cac7d1c950b /tests/substitute.scm | |
parent | b5fed903c44b27c61935a51ee1b4b866500f53c2 (diff) | |
download | patches-ebdfd776f4504c456d383ee8afa59fc6fdfc6756.tar patches-ebdfd776f4504c456d383ee8afa59fc6fdfc6756.tar.gz |
gexp: Compilers can now provide an "expander".
* guix/gexp.scm (<gexp-compiler>)[expand]: New field.
(default-expander, lookup-expander): New procedures.
(define-gexp-compiler): Add second pattern to allow for the definition
of both a compiler and an expander.
(gexp->sexp)[reference->sexp]: Call 'lookup-expander' and use its
result.
Diffstat (limited to 'tests/substitute.scm')
0 files changed, 0 insertions, 0 deletions