b2/: meta-variable $ for "previously matched variable"

We need this for iterative processing of FN.
This commit is contained in:
Werner Almesberger committed 2012-05-22 13:01:39 -03:00
1 parent 2946b830f1
commit 3d2eca34ff
7 files changed
+52 -17

No files matched your search

+4 -1
View File
@@ -1,5 +1,7 @@
FN=DNP { ignore }
FN=X(*) { $=$1 }
REF=R[0-9]* {
T=R
VAL=(#R) { R=$1 }
@@ -23,8 +25,9 @@ variable:
$foo, ...
with curly braces:
${foo}, ...
input variable:
input variable (in pattern):
$$
the input variable ($) can also be used as LHS for matches and assignments
Caveat: