add %iprint, to track variables during instantiation

This commit is contained in:
Werner Almesberger committed 2012-05-27 22:14:00 -03:00
1 parent 91154440a3
commit 3c39600c1c
8 files changed
+148 -12

No files matched your search

+10 -1
View File
@@ -684,6 +684,7 @@ most of which mimick the effect of GUI operations:
%move <identifier> [<number>] <identifier>
%frame <identifier> <qualified-base>
%print <expression>
%iprint <expression>
%meas <identifier>
%dump
%exit
@@ -715,7 +716,15 @@ parent frame's origin can be references as "@".
%dump writes the footprint definition in the fped language to standard
output. %exit immediately exits fped, without invoking the GUI.
%print evaluates the expression and prints the result to standard output.
%print and %iprint evaluate the expression and print the result to
standard output. The difference between them is that %print runs only
once and without explicit instantiation, while %iprint is treated as
a regular object and is executed as many times as instantiation
demands.
For example, after loop x = 1, 3 we would obtain just 1 with %print
while %iprint would display, 1, 2, and 3.
%meas performs an instantiation and prints the value of the labeled
measurement.