Same fringe: Difference between revisions

m
→‎version 1.1: removed OVERFLOW from the PRE html tagm, indented and changed section header comments.
(+ third D entry)
m (→‎version 1.1: removed OVERFLOW from the PRE html tagm, indented and changed section header comments.)
Line 1,697:
===version 1.1===
This REXX example is a re-written program that mimics the first version (above).
<br><br>ItThis version has:
:::* elided a subroutine
:::* elided superfluous DO-END'''do ── end''' groups
:::* elided some stemmed array tails
:::* elided some REXX variables (lvl, debug, ...···)
:::* simplified some stem names
:::* displays the tree (as an ASCII display)
:::* changed ''tree'' names so as to not conflict with ''leaf'' names
:::* uses non-case sensativesensitive tree names
:::* used boolean based variables as ''logicals''
:::* expanded messagesmessage texts
:::* a streamlined the &nbsp; ''make_tree'' &nbsp; subroutine
<lang rexx>/*REXX pgm examines leaves of two binary trees. Tree used is as above.*/
_=left('',28); say _ ' A A '
Line 1,797:
return</lang>
'''output'''
<pre>
<pre style="overflow:scroll">
A A
/ \ ◄────1st tree / \