commit 0f4ff922ff9fe459b7cb8fbed148221f04b16061
parent d7df3f22b4662719c3841f174886d49b7184e165
Author: Jack Firth <jackhfirth@gmail.com>
Date: Tue, 9 Dec 2014 23:03:44 -0800
Update README.md
Fix formatting
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
@@ -3,7 +3,7 @@ generic-syntax-expanders
A Racket package for creating macros with built-in support for defining sub-macros within them, similar to match expanders
-Sometimes complex Racket macros need a way for their syntax to be extended. The Racket match form is an example, new patterns can be created for match using define-match-expander. This racket package provides a form for defining a macro with the ability to define expanders for the macro. Consider this contrived example:
+Sometimes complex Racket macros need ways to extend their syntax. For example, in the `match` form new patterns can be created for `match` using `define-match-expander`. This package provides a form for defining a macro with the ability to define expanders for the macro. Consider this contrived example:
(define-syntax call-each
(syntax-parser
@@ -12,7 +12,7 @@ Sometimes complex Racket macros need a way for their syntax to be extended. The
(call-each displayln (1 2 3))
-If a user of this macro wished for a way to specify a range of numbers as the arguments, the user must define their own version of call-each with support for ranges that expands to using the original call-each. However, this racket package provides a form, define-syntax-with-expanders:
+If a user of this macro wished for a way to specify a range of numbers as the arguments, the user must define their own version of `call-each` with support for ranges that expands to using the original call-each. However, this package provides a form, `define-syntax-with-expanders`:
(require generic-syntax-expanders)
@@ -28,6 +28,6 @@ If a user of this macro wished for a way to specify a range of numbers as the ar
(call-each displayln (foo 1 4))
-The define-syntax-with-expanders form creates a define-call-each-expander form, which defines syntax transformers that are only used inside the body of a call-each form and expand before call-each does.
+The `define-syntax-with-expanders` form creates a `define-call-each-expander` form, which defines syntax transformers that are only used inside the body of a `call-each` form and expand before `call-each` does.
You can install this package with `raco package install generic-syntax-expanders`.