ASCII art diagram converter: Difference between revisions
Content deleted Content added
→{{header|REXX}}: added/changed whitespace and comments. aligned some statements, added wording to the REXX section header, simplified code for a PARSE statement. |
m →{{header|REXX}}: added a better idiomatic method for lowercasing a hexadecimal string. |
||
Line 1,473:
say 'test (hex)=' test " length=" L 'hexadecimal digits.'
say
do r=1 by 8+8 to L*4; _1= substr(bits, r, 8, 0);
say 'test (bit)=' _1 _2
end /*r*/
say
do m=1 for words($)
_=
say right( word($, m), w+2) ' decimal='right( x2d(_), wm)
end /*m*/
exit 0
/*──────────────────────────────────────────────────────────────────────────────────────*/
lower: l= 'abcdefghijklmnopqrstuvwxyz'; u=l; upper u; return translate( arg(1), l, u)</lang>
{{out|output|text= when using the default input:}}
<pre>
|