mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2025-04-21 12:27:27 +03:00
b2/: add parsing of substitution rules (WIP)
This commit is contained in:
25
b2/SUBST
Normal file
25
b2/SUBST
Normal file
@@ -0,0 +1,25 @@
|
||||
REF=R[0-9]* {
|
||||
T=R
|
||||
VAL=.* { R=$$#R }
|
||||
TOL = 5%
|
||||
FN=.*% { TOL=${$#%} }
|
||||
break REF
|
||||
// end break again
|
||||
}
|
||||
|
||||
/*
|
||||
pattern: () * ? .
|
||||
subst: $1 ... $field
|
||||
|
||||
substring:
|
||||
$1, $2, ...
|
||||
variable:
|
||||
$foo, ...
|
||||
with curly braces:
|
||||
${foo}, ...
|
||||
unit conversion:
|
||||
$foo#V
|
||||
${1#R}
|
||||
input variable:
|
||||
$$
|
||||
*/
|
||||
Reference in New Issue
Block a user