This commit is contained in:
Ingy döt Net 2013-04-10 21:29:02 -07:00
parent 764da6cbbb
commit db842d013d
19005 changed files with 197040 additions and 7 deletions

View 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!'

View file

@ -0,0 +1,3 @@
amount = 100
result = "You got" amount "points."
say result

View 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