First commit of partial RosettaCode contents.
Pushing this for testing purposes. Lots of work still needed.
This commit is contained in:
commit
1e05ecd7ee
781 changed files with 9080 additions and 0 deletions
3
Task/Comments/REXX/comments-2.rexx
Normal file
3
Task/Comments/REXX/comments-2.rexx
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
-- A REXX line comment
|
||||
|
||||
say "something" -- another line comment
|
||||
42
Task/Comments/REXX/comments.rexx
Normal file
42
Task/Comments/REXX/comments.rexx
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
/*REXX program to demonstrate various uses and types of comments. */
|
||||
|
||||
/* everything between a "climbstar" and a "starclimb" (exclusive of literals) is
|
||||
a comment.
|
||||
climbstar = /* [slash-asterisk]
|
||||
starclimb = */ [asterisk-slash]
|
||||
|
||||
/* this is a nested comment, by gum! */
|
||||
/*so is this*/
|
||||
|
||||
Also, REXX comments can span multiple records.
|
||||
|
||||
There can be no intervening character between the slash and asterisk (or
|
||||
the asterisk and slash). These two joined characters cannot be separated
|
||||
via a continued line, as in the manner of:
|
||||
|
||||
say 'If I were twoâfaced,' ,
|
||||
'would I be wearing this one?' ,
|
||||
' --- Abraham Lincoln'
|
||||
|
||||
Here come's the thingy that ends this REXX comment. ââââ
|
||||
â
|
||||
â
|
||||
â
|
||||
|
||||
*/
|
||||
|
||||
hour = 12 /*high noon */
|
||||
midnight = 00 /*first hour of the day */
|
||||
suits = 1234 /*card suits: ⥠⦠⣠â */
|
||||
|
||||
hutchHdr = '/*'
|
||||
hutchEnd = "*/"
|
||||
|
||||
/* the previous two "hutch" assignments aren't
|
||||
the start nor the end of a REXX comment. */
|
||||
|
||||
x=1000000 ** /*¡big power!*/ 1000
|
||||
|
||||
/*not a real good place for a comment (above),
|
||||
but essentially, a REXX comment can be
|
||||
anywhere whitespace is allowed. */
|
||||
Loading…
Add table
Add a link
Reference in a new issue