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:
5
b2/SUBST
5
b2/SUBST
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user