A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
6
Task/Literals-String/REXX/literals-string-1.rexx
Normal file
6
Task/Literals-String/REXX/literals-string-1.rexx
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
char1 = "A"
|
||||
char2 = 'A'
|
||||
str = "this is a string"
|
||||
another = 'this is also a string'
|
||||
escape1 = "that's it!"
|
||||
escape2 = 'that''s it!'
|
||||
3
Task/Literals-String/REXX/literals-string-2.rexx
Normal file
3
Task/Literals-String/REXX/literals-string-2.rexx
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
amount = 100
|
||||
result = "You got" amount "points."
|
||||
say result
|
||||
16
Task/Literals-String/REXX/literals-string-3.rexx
Normal file
16
Task/Literals-String/REXX/literals-string-3.rexx
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
It's also possible to express characters in hexadecimal notation in a string:
|
||||
lf = '0A'x
|
||||
cr = '0D'x
|
||||
|
||||
mmm='01 02 03 34 ee'x
|
||||
ppp='dead beaf 11112222 33334444 55556666 77778888 00009999 c0ffee'X
|
||||
|
||||
lang='52455858'x /*which is "REXX" on ASCII-computers.*/
|
||||
|
||||
Binary strings are also possible:
|
||||
|
||||
jjj='01011011'B
|
||||
jjj='01011011'b
|
||||
jjj='0101 1011'b
|
||||
jjj='0101 1011 1111'b
|
||||
longjjj='11110000 10100001 10110010 11100011 11100100'B
|
||||
Loading…
Add table
Add a link
Reference in a new issue