1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-12-22 23:05:11 +02:00

test.sub now better catches typos and supports more capacitor parameters.

- boom/test.sub (R, C): set R and C by default to "required", so that an
  unparseable value doesn't cause a wildcard search
- boom/test.sub (C): added tolerances
- boom/test.sub (C): added material and special properties (syntax:
  material/property, e.g., NP0/RF)
This commit is contained in:
Werner Almesberger 2010-10-17 15:56:04 -03:00
parent 94de4f9865
commit d31ede8bea

View File

@ -6,7 +6,7 @@
-> T=unknown
R[0-9P]* { # also handle RP...
-> T=R
-> T=R R=required
VAL=$R -> R=$VAL
# -> TOL=5%
FN=$% -> TOL=$FN
@ -18,9 +18,12 @@ RP[0-9]* {
}
C[0-9]* {
-> T=C
-> T=C C=required
VAL=*F -> C=$VAL
FN=*V -> V=>=$FN
FN=$% -> TOL=$FN
FN=(NP0|[XYZ][456789][ABCDEFPRSTUV]) -> M=$FN
FN=(NP0|[XYZ][456789][ABCDEFPRSTUV])/(*) -> M=$FN:1 X=$FN:2
}
L[0-9]* {