1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2025-04-21 12:27:27 +03:00

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

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

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: