DJ Delorie wrote: >> DJ is fast on the draw... by the time I saw this thread he already >> has a patch. I was thinking of doing something similar. This will >> be quite handy. > > :-) > >> As a handy extension, it would be convenient to be able to specify a >> default unit that applies to an entire footprint, so that a unit of >> "mm" or whatever didn't have to appear after every number. > > That would be tricker because you'd have to have communication between > the parser and the lexer, so it knows *which* default prefix to use. > Or, we'd have to move the scaling to the parser instead. Change > "NUMBER" to "number" and make it a sub-rule that scales its value. > You'd also need to add a syntax for that default. And then someone > will want a default for the PCB itself, etc.
One of these days we should just switch to the resource file format and be done with it. Then you could fairly easily (I think) let the current default units basically be set as you go down a tree. -Dan _______________________________________________ geda-user mailing list [email protected] http://www.seul.org/cgi-bin/mailman/listinfo/geda-user

