Rename the IO.write method to IO.print, which now prints without a trailing newline, and add a new IO.print method that appends a newline after output. Update all benchmark, example, and test files to use IO.print instead of IO.write. Additionally, implement Unicode escape sequence parsing in the compiler's string tokenizer, supporting \uXXXX and \u{...} syntax with proper UTF-8 encoding for code points up to U+10FFFF.
6 lines
114 B
Plaintext
6 lines
114 B
Plaintext
// skip: Variables should not be in scope in their initializer.
|
|
{
|
|
var a = a + 1 // expect error
|
|
IO.print(a)
|
|
}
|