# New Ticket Created by  Matt Diephouse 
# Please include the string:  [perl #38088]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/rt3/Ticket/Display.html?id=38088 >


While not necessary, it'd be nice from a debugging standpoint to 
generate nicely formatted PIR when given the --pir option. The easiest 
way to do this is probably to write something that indents PIR code 
based on labels, so

start_0:
print "foo"
start_1:
print "blah"
end_1:
print "baz"
end_0:

is translated to

start_0:
  print "foo"
  start_1:
    print "blah"
  end_1:
  print "baz"
end_0:

It would have to take the label names actually created by the compiler 
into account in order to do this correctly.

Alternatively, one could custom-indent code as it was created. But this 
would require flag checking and sub/method calls, which will slow things 
down.

--
matt diephouse
http://matt.diephouse.com

Reply via email to