mirror of
git://projects.qi-hardware.com/fped.git
synced 2025-04-21 12:27:27 +03:00
Added debugging directives to the fped language. They're describe at the end
of README.
- fpd.l, fpd.y, README: added debugging directives %del, %move, %print, %dump,
and %exit
- obj.h, fpd.y (find_obj, find_label, new_obj): objects can now be labeled
- obj.c (obj_anchors), inst.c (inst_anchors): gathering the list of anchors is
now a per-object function, not an instance "method". inst_anchors implements
the vector vs. object switch.
- inst.h, inst.c: removed all *_op_anchors functions
- expr.c (str_unit): in the past, we returned a malloc'ed string, but these
times are long gone. Thus, don't stralloc("").
git-svn-id: http://svn.openmoko.org/trunk/eda/fped@5919 99fdad57-331a-0410-800a-d7fa5415bdb3
This commit is contained in:
31
README
31
README
@@ -555,3 +555,34 @@ b: vec @(1mm, 0mm)
|
||||
measx "width = " a >> b 0mm
|
||||
|
||||
would print "width = 1mm"
|
||||
|
||||
|
||||
Experimental: debugging directives
|
||||
----------------------------------
|
||||
|
||||
For debugging and regression tests, fped supports the following commands
|
||||
that mimick the effect of GUI operations:
|
||||
|
||||
%del <identifier>
|
||||
%move <identifier> [<number>] <identifier>
|
||||
%print <expression>
|
||||
%dump
|
||||
%exit
|
||||
|
||||
%del and %move take as their first argument the name of the vector or
|
||||
object to manipulate. For this purpose, also objects can be labeled.
|
||||
|
||||
Object labels behave like vector labels and share the same name space.
|
||||
They are not shown anywhere in the GUI.
|
||||
|
||||
%move sets an anchor point to the vector named as its last argument.
|
||||
The anchor point is identified by index as follows:
|
||||
|
||||
anchor index vec/frame line/rect/pad arc measurement
|
||||
-------------- --------- ------------- ------------ -----------
|
||||
0 (or omitted) base first point center low point
|
||||
1 - second point end of arc high point
|
||||
2 - - start of arc -
|
||||
|
||||
%dump writes the footprint definition in the fped language to standard
|
||||
output. %exit immediately exits fped, without invoking the GUI.
|
||||
|
||||
Reference in New Issue
Block a user