From: Matt S Trout Date: Sun, 1 Nov 2015 07:42:21 +0000 (+0000) Subject: basic formatting of resolved props X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=693f2d6d440dcc6704d0c796e2bc448b3a250f7a;p=scpubgit%2FDX.git basic formatting of resolved props --- diff --git a/lib/DX/Deparse.pm b/lib/DX/Deparse.pm index 89a805d..ea96412 100644 --- a/lib/DX/Deparse.pm +++ b/lib/DX/Deparse.pm @@ -106,7 +106,17 @@ sub _fmt_action_generic { join ' ', $name, $path, $self->_fmt($action->new_value, $meta); } -sub _fmt_resolvedpropositionset { '{...}' } +sub _fmt_resolvedpropositionset { + my ($self, $rps, $meta) = @_; + $self->_fmt($rps->propositions, $meta); +} + +sub _fmt_proposition { + my ($self, $prop, $meta) = @_; + join ' ', + $prop->predicate, + map $self->_fmt($_, $meta), @{$prop->args}; +} sub _fmt_scope { my ($self, $scope, $meta) = @_;