Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
19
Task/Jump-anywhere/REXX/jump-anywhere-1.rexx
Normal file
19
Task/Jump-anywhere/REXX/jump-anywhere-1.rexx
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
/*REXX pgm demonstrates various jumps (GOTOs). In REXX, it's a SIGNAL. */
|
||||
say 'starting...'
|
||||
signal aJump
|
||||
say 'this statement is never executed.'
|
||||
|
||||
aJump: say 'and here we are at aJump.'
|
||||
do j=1 to 10
|
||||
say 'j=' j
|
||||
if j==7 then signal bJump
|
||||
end /*j*/
|
||||
bJump: say 'and here we are at bJump.'
|
||||
|
||||
signal cJump
|
||||
say 'this statement is never executed.'
|
||||
do k=1 to 10
|
||||
say 'k=' k
|
||||
cJump: say 'and here we are at cJump.'
|
||||
exit
|
||||
end /*k*/
|
||||
11
Task/Jump-anywhere/REXX/jump-anywhere-2.rexx
Normal file
11
Task/Jump-anywhere/REXX/jump-anywhere-2.rexx
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
i=13
|
||||
signal label
|
||||
say 'This is never executed'
|
||||
sub: Procedure Expose i
|
||||
Do i=1 To 10;
|
||||
label:
|
||||
Say 'label reached, i='i
|
||||
Signal real_start
|
||||
End
|
||||
Return
|
||||
real_start:
|
||||
17
Task/Jump-anywhere/REXX/jump-anywhere-3.rexx
Normal file
17
Task/Jump-anywhere/REXX/jump-anywhere-3.rexx
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
/* REXX ***************************************************************
|
||||
* 12.12.2012 Walter Pachl
|
||||
**********************************************************************/
|
||||
Signal On Syntax
|
||||
Parse Upper Arg part
|
||||
If part<>'' Then
|
||||
Interpret 'Signal' part
|
||||
Say 'Executing default part'
|
||||
Signal eoj
|
||||
a:Say 'executing part A'
|
||||
Signal eoj
|
||||
b:Say 'executing part B'
|
||||
Signal eoj
|
||||
Syntax:
|
||||
Say 'argument must be a or b or omitted'
|
||||
Exit
|
||||
eoj: say 'here we could print statistics'
|
||||
Loading…
Add table
Add a link
Reference in a new issue