Implement R7RS 'syntax-error'.
authorMark H Weaver <mhw@netris.org>
Thu, 19 Dec 2013 18:22:50 +0000 (13:22 -0500)
committerMark H Weaver <mhw@netris.org>
Thu, 9 Jan 2014 22:43:53 +0000 (17:43 -0500)
commit0e18163366c2f2a0caecde18241dbd7987b4db7c
tree54b62c783506a8024fc2873f1997ca8783095cb0
parent1624e149f75747310c9ce15db7db5324a538f8f8
Implement R7RS 'syntax-error'.

* module/ice-9/psyntax.scm (syntax-error): New macro.
  (syntax-rules): Handle 'syntax-error' templates specially
  for improved error reporting.

* module/ice-9/psyntax-pp.scm: Regenerate.

* doc/ref/api-macros.texi (Syntax Rules): Add new subsection "Reporting
  Syntax Errors in Macros".

* test-suite/tests/syntax.test: Add tests.
doc/ref/api-macros.texi
module/ice-9/psyntax-pp.scm
module/ice-9/psyntax.scm
test-suite/tests/syntax.test