Idiomatically determine all the characters that can be used for symbols: Difference between revisions

Content added Content deleted
(→‎{{header|Perl 6}}: clarify about whitespace not being allowed in symbols)
m (tidy up task description)
Line 1: Line 1:
{{draft task}}
{{draft task}}

Idiomatically determine all the characters that can be used for ''symbols''.
Idiomatically determine all the characters that can be used for ''symbols''.
The word ''symbols'' is meant things like names of variables, procedures (i.e., named fragments of programs, functions, subroutines, routines), statement labels, events or conditions, and in general, anything a computer programmer can choose to ''name'', but not being restricted to this list. ''Identifiers'' might be another name for ''symbols''.


The method should find the characters regardless of the hardware architecture that is being used (ASCII, EBCDIC, or other).
The word ''symbols'' is meant things like names of variables, procedures/programs/functions/subroutines/routines, statement labels, events or conditions, and in general, anything a computer programmer can choose to ''name'', but not being restricted to this list.   ''Identifiers'' might be another name for ''symbols''.


;Task requirements

The method should find the characters regardless of the hardware architecture that is being used   (ASCII, EBCDIC, or other).

;task requirements


Display the set of all the characters that can be used for symbols which can be used (allowed) by the computer program.
Display the set of all the characters that can be used for symbols which can be used (allowed) by the computer program.
You may want to mention what hardware architecture is being used, and if applicable, the operating system.


Note that most languages have additional restrictions on what characters can't be used for the first character of a variable or statement label, for instance. These type of restrictions needn't be addressed here (but can be mentioned).
<br>You may want to mention what hardware architecture is being used, and if applicable, the operating system.

Note that most languages have additional restrictions on what characters can't be used for the first character of a variable or statement label, for instance. &nbsp; These type of restrictions needn't be addressed here &nbsp; (but can be mentioned).


;See also
;Cf:
* [[Idiomatically_determine_all_the_lowercase_and_uppercase_letters|Idiomatically determine all the lowercase and uppercase letters]].
* [[Idiomatically_determine_all_the_lowercase_and_uppercase_letters|Idiomatically determine all the lowercase and uppercase letters]].
<br>


=={{header|ooRexx}}==
=={{header|ooRexx}}==