Jump Table Example in PL/I
PL/I implements a jump table as an array of label variables. These may be initialized in an unusual way by using a subscripted statement label. PL/I label variables are not simply the address of the statement, but usually contain additional information on the state of the code block to which they belong.
declare lab (10) label; declare x fixed binary; goto lab(x); lab(1): /* code for choice 1 */ ; ... lab(2): /* code for choice 2 */ ; ...Read more about this topic: Branch Table
Famous quotes containing the words jump and/or table:
“Most of the folktales dealing with the Indians are lurid and romantic. The story of the Indian lovers who were refused permission to wed and committed suicide is common to many places. Local residents point out cliffs where Indian maidens leaped to their death until it would seem that the first duty of all Indian girls was to jump off cliffs.”
—For the State of Iowa, U.S. public relief program (1935-1943)
“In this sad state, God Tender Bowells run
Out streams of Grace: And he to end all strife
The Purest Wheate in Heaven, his deare-dear Son
Grinds, and kneads up into this Bread of Life.
Which Bread of Life from Heaven down came and stands
Disht on thy Table up by Angells Hands.”
—Edward Taylor (16451729)