Tokenize a string: Difference between revisions
Content added Content deleted
m (→{{header|REXX}}: Whitespace) |
|||
Line 994: | Line 994: | ||
=={{header|REXX}}== |
=={{header|REXX}}== |
||
===version 1=== |
===version 1=== |
||
⚫ | |||
<lang rexx> |
|||
⚫ | |||
say 'input string='sss /*echo the string to console. */ |
say 'input string='sss /*echo the string to console. */ |
||
say |
say |
||
Line 1,010: | Line 1,009: | ||
end |
end |
||
say 'End-of-list.' /*Display a trailer for the list*/ |
say 'End-of-list.' /*Display a trailer for the list*/</lang> |
||
</lang> |
|||
Output: |
Output: |
||
<pre> |
|||
<pre style="height:25ex;overflow:scroll"> |
|||
input string=Hello,How,Are,You,Today |
input string=Hello,How,Are,You,Today |
||
Line 1,024: | Line 1,022: | ||
End-of-list. |
End-of-list. |
||
</pre> |
</pre> |
||
===version 2=== |
===version 2=== |
||
⚫ | |||
<lang rexx> |
|||
⚫ | |||
say 'input string='sss /*echo the string to console. */ |
say 'input string='sss /*echo the string to console. */ |
||
say |
say |
||
Line 1,036: | Line 1,034: | ||
end |
end |
||
say 'End-of-list.' /*Display a trailer for the list.*/ |
say 'End-of-list.' /*Display a trailer for the list.*/</lang> |
||
</lang> |
|||
Output is identical to Version 1. |
Output is identical to Version 1. |
||
<br> |
|||
=={{header|Ruby}}== |
=={{header|Ruby}}== |