Data update
This commit is contained in:
parent
ed705008a8
commit
0df55f9f24
2196 changed files with 32999 additions and 3075 deletions
|
|
@ -4,6 +4,6 @@ public program()
|
|||
{
|
||||
var ch := $97;
|
||||
|
||||
console.printLine:ch;
|
||||
console.printLine(ch);
|
||||
console.printLine(ch.toInt())
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,4 +8,4 @@ writeln .a1 == .a2
|
|||
writeln .a2 == .a3
|
||||
writeln .a3 == .a4
|
||||
writeln "numbers: ", join ", ", [.a1, .a2, .a3, .a4, .a5]
|
||||
writeln "letters: ", join ", ", [cp2s(.a1), cp2s(.a2), cp2s(.a3), cp2s(.a4), cp2s(.a5)]
|
||||
writeln "letters: ", join ", ", map cp2s, [.a1, .a2, .a3, .a4, .a5]
|
||||
|
|
|
|||
10
Task/Character-codes/MiniScript/character-codes.mini
Normal file
10
Task/Character-codes/MiniScript/character-codes.mini
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
cps = []
|
||||
for c in ["a", "π", "字", "🐘"]
|
||||
cp = c.code
|
||||
cps.push cp
|
||||
print c + " = " + cp
|
||||
end for
|
||||
print
|
||||
for i in cps
|
||||
print i + " = " + char(i)
|
||||
end for
|
||||
|
|
@ -1,3 +1,5 @@
|
|||
( uxnasm char-codes.tal char-codes.rom && uxncli char-codes.rom )
|
||||
|
||||
|00 @System &vector $2 &expansion $2 &wst $1 &rst $1 &metadata $2 &r $2 &g $2 &b $2 &debug $1 &state $1
|
||||
|10 @Console &vector $2 &read $1 &pad $4 &type $1 &write $1 &error $1
|
||||
|
||||
|
|
@ -7,6 +9,7 @@
|
|||
#61 .Console/write DEO
|
||||
newline
|
||||
|
||||
( exit )
|
||||
#80 .System/state DEO
|
||||
BRK
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue