RosettaCodeData/Task/Variables/REXX/variables-2.rexx

19 lines
1.1 KiB
Rexx
Raw Permalink Normal View History

2013-04-11 01:07:29 -07:00
kk = '123'x /*assigns hex 00000123 ───► KK */
kk = 'dead beaf'X /*assigns hex deadbeaf ───► KK */
ll = '0000 0010'b /*assigns blank ───► LL (ASCII) */
mm = '0000 0100'B /*assigns blank ───► MM (EBCDIC)*/
xxx = '11 2. 333 -5'
parse var xxx nn oo pp qq rr
/*assigns 11 ───► NN */
/*assigns 2. ───► OO */
/*assigns 333 ───► PP */
/*assigns ─5 ───► QQ */
/*assigns "null" ───► RR */
2013-10-27 22:24:23 +00:00
2015-02-20 00:35:01 -05:00
/*a "null" is a string of length zero (0), */
/*and is not to be confused with a null char.*/
2013-10-27 22:24:23 +00:00
2015-02-20 00:35:01 -05:00
cat = 'A cat is a lion in a jungle of small bushes.'
2013-10-27 22:24:23 +00:00
/*assigns a literal ───► CAT */