our @EXPORT_OK = (
@const,
(my @builders = qw(step string number dict proposition)),
- 'deparse',
+ 'deparse', 'trace',
);
our %EXPORT_TAGS = (
our @VALUE_EXISTS = (EXISTENCE_OF(), INDICES_OF(), TYPE_OF(), CONTENTS_OF());
our @VALUE_SET = (INDICES_OF(), TYPE_OF(), CONTENTS_OF());
+sub trace {
+ my ($tag, $thing) = @_;
+ my $dp = deparse($thing);
+ $dp =~ s/\n//;
+ warn "${tag}: ${dp}\n";
+}
+
sub step {
require DX::Step::Normal;
DX::Step::Normal->new(@_);