Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

modified readme

  • Loading branch information...
commit 5a3db0900b99ead85f64af32d35120210c8977f6 1 parent 4ad0444
Li Haoyi authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  readme.md
3  readme.md
View
@@ -93,7 +93,7 @@ MacroPy intercepts the module-loading workflow, via the functionality provided b
Examples
========
-Below are a few example uses of macros that are implemented (together with test cases!) in the [macropy/macros](macropy/macros) and [macropy/macros2](macropy/macros2) folders. These are also the ideal places to go look at to learn to write your own macros: check out the source code of the [String Interpolation](macropy/macros/string_interp.py) or [Quick Lambda](macropy/macros/quicklambda.py) macros for some small (<30 lines), self contained examples.
+Below are a few example uses of macros that are implemented (together with test cases!) in the [macropy/macros](macropy/macros) and [macropy/macros2](macropy/macros2) folders. These are also the ideal places to go look at to learn to write your own macros: check out the source code of the [String Interpolation](macropy/macros/string_interp.py) or [Quick Lambda](macropy/macros/quicklambda.py) macros for some small (<30 lines), self contained examples. Their [unit](macropy/macros/string_interp_test.py) [tests](macropy/macros/quicklambda_test.py) demonstrate how these macros are used.
Quasiquotes
-----------
@@ -158,6 +158,7 @@ print ast.dump(y)
This is convenient in order to interpolate a string variable as an identifier, rather than interpolating it as a string literal.
+Overall, quasiquotes are an incredibly useful tool for assembling or manipulating the ASTs, and are used in the implementation in all of the following examples. See the [String Interpolation](macropy/macros/string_interp.py) or [Quick Lambda](macropy/macros/quicklambda.py) macros for short, practical examples of their usage.
String Interpolation
--------------------
Please sign in to comment.
Something went wrong with that request. Please try again.