json-native: token positions (line/column); escape utils BMP coverage + surrogate guard; add smokes for string escapes, nested, and error cases (AST/VM)

This commit is contained in:
Selfhosting Dev
2025-09-26 00:42:55 +09:00
parent b3a96faccb
commit 041cef875a
16 changed files with 206 additions and 44 deletions

View File

@ -53,6 +53,13 @@ box JsonToken {
get_line() { return me.line }
get_column() { return me.column }
// 位置情報の設定(トークナイザーから付与)
set_line_column(line, column) {
me.line = line
me.column = column
return me
}
// ===== 判定メソッド =====
is_literal() {
@ -247,4 +254,4 @@ static box TokenStats {
i = i + 1
}
}
}
}