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

b2/: make top-level hierarchy item an action, not just a rule

This allows the definition of optional global fields. For now, we (ab)use
this for FP (footprint).
This commit is contained in:
Werner Almesberger
2012-04-28 23:30:50 -03:00
parent 6c49fdd789
commit 1394c6b61c
4 changed files with 12 additions and 9 deletions

View File

@@ -5,8 +5,9 @@
<comp> = R<C<L<D; // order doesn't really matter
<diode> = D<SCH<Z<TVS; // D < SCH may make sense, the rest doesn't
{ FP=* }
T=<comp> {
R: { R=#R TOL=%R FP=* };
R: { R=#R TOL=%R };
C: { C=#F TOL=%C V=#V };
L: { L=#H TOL=%L I=#A };
D: { C=#F }
@@ -15,4 +16,4 @@ T=<comp> {
Z: { V=#V I=#A };
*: { Vf=#V Vr=#V I=#A };
};
}
};