Idiomatically determine all the characters that can be used for symbols: Difference between revisions
Content deleted Content added
Walterpachl (talk | contribs) →version 1: executed using ooRexx :-) |
Walterpachl (talk | contribs) →version 2: extens subtitle and add Regina output |
||
Line 170: | Line 170: | ||
Thus I've added version 2. |
Thus I've added version 2. |
||
===version 2=== |
===version 2=== ooRexx compatible |
||
This is to show what |
This is to show what the results are for this REXX program. Cf. the ooRexx section. |
||
<lang rexx>/*REXX program determines what characters are valid for REXX symbols.*/ |
<lang rexx>/*REXX program determines what characters are valid for REXX symbols.*/ |
||
/* version 1adapted for ooRexx (without using any oo feature) */ |
/* version 1adapted for ooRexx (without using any oo feature) */ |
||
Line 184: | Line 184: | ||
say 'symbol characters:' symbol_characters /*display all */ |
say 'symbol characters:' symbol_characters /*display all */ |
||
</lang> |
</lang> |
||
{{out}} |
{{out}} for some interpreters |
||
Note that $#@ are no longer valid symbol characters. |
Note that $#@ are no longer valid symbol characters. |
||
<pre>REXX-ooRexx_4.2.0(MT)_32-bit 6.04 22 Feb 2014 |
<pre>REXX-ooRexx_4.2.0(MT)_32-bit 6.04 22 Feb 2014 |
||
symbol characters: !.0123456789?ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz |
symbol characters: !.0123456789?ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz |
||
REXX-Regina_3.8.2(MT) 5.00 22 Jun 2014 |
|||
symbol characters: !#$.0123456789?@ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz |
|||
</pre> |
|||
=={{header|Tcl}}== |
=={{header|Tcl}}== |