Idiomatically determine all the characters that can be used for symbols: Difference between revisions
Content added Content deleted
Walterpachl (talk | contribs) (→{{header|REXX}}: remover ooRexx Output from Version 1 and changed reasoning for Version 2) |
Walterpachl (talk | contribs) (→{{header|ooRexx}}: copied REXX Version 2 here) |
||
Line 66:
=={{header|ooRexx}}==
Although this program does not use any feature that is not in '''Classic''' Rexx,
it is included here to show what characters are valid for symbols in ooRexx.
/* copied from REXX version 2
Parse Version v
_=d2c(j) /*convert decimal number to char.*/▼
Say v
if datatype(_,'S') then a=a || _ /*Symbol char? Then add to list.*/▼
symbol_characters=''
symbol_characters=symbol_characters || c /* add to list. */
end
symbol characters: !.0123456789?ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz </pre>▼
say 'symbol characters:' symbol_characters /*display all */ {{out}}
<pre>REXX-ooRexx_4.2.0(MT)_32-bit 6.04 22 Feb 2014
=={{header|PARI/GP}}==
|