mirror of
https://github.com/exoticorn/curlywas.git
synced 2026-11-13 19:17:19 +01:00
add support for escaped strings + (multi-)char literatls
This commit is contained in:
1 parent
aac7bbd878
commit
4cfc7ae8a8
2 files changed
+84
-4
No files matched your search
@@ -0,0 +1,15 @@
|
||||
import "env.memory" memory(4);
|
||||
import "env.printString" fn printString(i32);
|
||||
import "env.printChar" fn printChar(i32);
|
||||
|
||||
export fn upd() {
|
||||
printChar(12);
|
||||
printChar('Test');
|
||||
printChar('\x1f\x10\x10');
|
||||
printChar('abc\n');
|
||||
printString(0);
|
||||
}
|
||||
|
||||
data 0 {
|
||||
"\x0e\x64\"Colors!!!\"\x0e\1\0"
|
||||
}
|
||||
Reference in new issue
Block a user