Branch Table - Jump Table Example in PL/I

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:

    If it were done when ‘tis done, then ‘twere well
    It were done quickly. If th’ assassination
    Could trammel up the consequence, and catch
    With his surcease success—that but this blow
    Might be the be-all and the end-all!—here,
    But here, upon this bank and shoal of time,
    We’d jump the life to come.
    William Shakespeare (1564–1616)

    For the elemental creatures go
    About my table to and fro,
    That hurry from unmeasured mind
    To rant and rage in flood and wind....

    William Butler Yeats (1865–1939)