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: | Line 66: | ||
=={{header|ooRexx}}== |
=={{header|ooRexx}}== |
||
Although this program does not use any feature that is not in '''Classic''' Rexx, |
|||
<lang oorexx>/*REXX program determines what characters are valid for REXX symbols.*/ |
|||
it is included here to show what characters are valid for symbols in ooRexx. |
|||
/* copied/adjusted from REXX */ |
|||
<lang oorexx/*REXX program determines what characters are valid for REXX symbols.*/ |
|||
/* copied from REXX version 2 */ |
|||
Parse Version v |
|||
⚫ | |||
Say v |
|||
⚫ | |||
symbol_characters='' /* start with no chars */ |
|||
⚫ | |||
c=d2c(j) /* convert number to character*/ |
|||
⚫ | |||
{{out}} |
|||
symbol_characters=symbol_characters || c /* add to list. */ |
|||
<pre> |
|||
end |
|||
⚫ | |||
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}}== |
=={{header|PARI/GP}}== |