Granted, this is most likely as silly thought. But I have gotten used to
some tools on Linux which "beautify" source code. I'm thinking of "indent"
which reformats C code to a number of different "standards". Or maybe
"tidy" which can "clean up" HTML, XHTML, and XML.

So I was wondering if there is something to "clean up" HLASM code. Some
examples would be to change an instruction coded like:  "  L R1,0(R1) " to
be "more correct" with " L R1,0(,R1)". Of course, if R1 is supposed to be
in the index position, the "correct" way to code this would be "L
R1,0(R1,0) ". Another "clean up" might be to put opcodes and operands into
the "proper" columns of 10 & 16 respectively. Or maybe to rewrite macros so
that the "positional" parameters are, as much as possible, on the first
"card" and every keyword parameter is on a separate "card" and in
alphabetic order.

Yes, the above is really more due to my OCD about "pretty code". Not that
all my code is "pretty".

-- 
I have a theory that it's impossible to prove anything, but I can't prove
it.

Maranatha! <><
John McKown

Reply via email to