A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
5
Task/Introspection/REXX/introspection-1.rexx
Normal file
5
Task/Introspection/REXX/introspection-1.rexx
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
/*output from parse version (almost all REXX versions) */
|
||||
/* theREXXinterpreterName level mm Mon yyyy */
|
||||
|
||||
parse version . level .
|
||||
if level<4 then exit
|
||||
7
Task/Introspection/REXX/introspection-2.rexx
Normal file
7
Task/Introspection/REXX/introspection-2.rexx
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
parse version x 1 whatLang level mm mon yyyy .
|
||||
if level<4 then do
|
||||
say
|
||||
say 'version' level "is too old!"
|
||||
say x /*this displays everything.*/
|
||||
exit /*or maybe: EXIT 13 */
|
||||
end
|
||||
1
Task/Introspection/REXX/introspection-3.rexx
Normal file
1
Task/Introspection/REXX/introspection-3.rexx
Normal file
|
|
@ -0,0 +1 @@
|
|||
if symbol('bloop')=='VAR' then say 'the "bloop" variable exists.'
|
||||
2
Task/Introspection/REXX/introspection-4.rexx
Normal file
2
Task/Introspection/REXX/introspection-4.rexx
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
if symbol('bloop')=='VAR' then say 'the "bloop" variable exists.'
|
||||
else say 'the "bloop" variable doesn''t exist.'
|
||||
3
Task/Introspection/REXX/introspection-5.rexx
Normal file
3
Task/Introspection/REXX/introspection-5.rexx
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
bloop=47
|
||||
if symbol('bloop')=='VAR' then say 'the "bloop" variable exists.'
|
||||
else say 'the "bloop" variable doesn''t exist.'
|
||||
2
Task/Introspection/REXX/introspection-6.rexx
Normal file
2
Task/Introspection/REXX/introspection-6.rexx
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
bloop=47
|
||||
g=abs(bloop)
|
||||
9
Task/Introspection/REXX/introspection-7.rexx
Normal file
9
Task/Introspection/REXX/introspection-7.rexx
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
if testxyz() then say 'function XYZ not found.'
|
||||
else say 'function XYZ was found.'
|
||||
exit
|
||||
|
||||
testxyz: signal on syntax
|
||||
y='XYZ'(123)
|
||||
return 0
|
||||
|
||||
syntax: return 1
|
||||
Loading…
Add table
Add a link
Reference in a new issue