Time for an 2014 update…

This commit is contained in:
Ingy döt Net 2014-01-17 05:32:22 +00:00
parent 372c577f83
commit 09687c4926
2520 changed files with 34227 additions and 7318 deletions

View file

@ -0,0 +1 @@
?CHR$(97)"="ASC(CHR$(97))

View file

@ -4,3 +4,7 @@
; Unicode is also available, as Clojure uses the underlying java Strings & chars
(print (int )) ; prints 960
(print (char 960)) ; prints \π
; use String because char in Java can't represent characters outside Basic Multilingual Plane
(print (.codePointAt "𝅘𝅥𝅮" 0)) ; prints 119136
(print (String. (int-array 1 119136) 0 1)) ; prints 𝅘𝅥𝅮

View file

@ -1,8 +1,7 @@
#define std'dictionary'*.
#define std'basic'*.
#define system.
#symbol Program =>
[
'program'output << WideCharVar::"a" numeric.
'program'output << WideCharVar::97.
console write:("a" getAt:0 Number).
console write:(CharValue new:97).
].

View file

@ -1,5 +1,5 @@
# Code must be in 0 .. 255.
CHAR_INT(65);
CharInt(65);
# 'A'
INT_CHAR('Z');
IntChar('Z');
# 90

View file

@ -0,0 +1,2 @@
println(int('a'))
println(char(97))

View file

@ -0,0 +1,2 @@
Debug.Print Chr(97) 'Prints a
Debug.Print [Code("a")] ' Prints 97