summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2014-01-10 07:39:07 -0800
committerKaz Kylheku <kaz@kylheku.com>2014-01-10 07:39:07 -0800
commitaf2af7a4ed4321f955251f9da13a161a1e8940b3 (patch)
tree69f5864b4fbb97c0b8ea4fcb3828d1b1779c3753 /txr.1
parent7649cd2cc9165ad8019d9d33af697927fd2e64b4 (diff)
downloadtxr-af2af7a4ed4321f955251f9da13a161a1e8940b3.tar.gz
txr-af2af7a4ed4321f955251f9da13a161a1e8940b3.tar.bz2
txr-af2af7a4ed4321f955251f9da13a161a1e8940b3.zip
* match.c (do_txeval): Lift an annoying restriction in the pattern
language's expression evaluator. Whereas TXR Lisp expressions can be used int the pattern language, preceded by @, it was not possible to evaluate TXR Lisp variables this way. So instead of @var, some clumsy trick had to be used like @(identity var). This is not necessary any more. Code like @(next @*stdin*) will now work. * txr.1: Updated.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.16
1 files changed, 5 insertions, 1 deletions
diff --git a/txr.1 b/txr.1
index b93da15e..587e67e0 100644
--- a/txr.1
+++ b/txr.1
@@ -4763,7 +4763,7 @@ The TXR language contains an embedded Lisp dialect called TXR Lisp.
This language is exposed in TXR in three ways.
-Firstly, in any situation that calls for an expression, a Lisp compound
+Firstly, in any situation that calls for an expression, a Lisp
expression can be used, if it is preceded by the @ symbol. The Lisp expression
is evaluated and its value becomes the value of that expression.
Thus, TXR directives are embedded in literal text using @, and Lisp expressions
@@ -4785,6 +4785,10 @@ Bind variable a to the integer 4:
@(bind a @(+ 2 2))
+Bind variable b to the standard input stream:
+
+ @(bind a @*stdin*)
+
Define several Lisp functions using @(do):
@(do