feat(rfc-cm): add JSON floats and compact formatting
- Replace the JSON number scanner with sign/integer/fraction/exponent
scanning; return Int or Float via 整数/小数 and reject missing digits.
- Add 片段/格式化文本/格式化列表/格式化对象/格式化 recursive formatter.
- Extend fixture 62 with floats ({1,2.5,-3e2,4E-1,{a:1.0},x}) and a compact
round-trip string.
- Update P2 status: only the separate stdlib package and frozen-CLI closure
lane remain.
Gate: fmt, clippy -D warnings, 407 tests passed.
This commit is contained in:
1 parent
5d3a5fb13b
commit
1a978c7a42
7 files changed
+280
-30
No files matched your search
+6
-6
@@ -142,13 +142,13 @@ by:
|
||||
* semantic fixture 61: a `Memory`-backed graph adjacency list with 16-byte nodes
|
||||
and 8-byte edges, head-inserted edges and a neighbor traversal; no Rust graph
|
||||
container or new `Value` type;
|
||||
* semantic fixture 62: a recursive `.mq.md` JSON subset parser for nested
|
||||
* semantic fixture 62: a recursive `.mq.md` JSON parser/formatter for nested
|
||||
arrays and objects, strings with standard escapes including `\uXXXX`,
|
||||
integers (including negative), `true`/`false`/`null`, whitespace, `next`
|
||||
positions and `Result` errors (`json.unexpected_eof`, `json.invalid_array`,
|
||||
`json.invalid_object`, `json.invalid_string`, `json.invalid_number`,
|
||||
`json.invalid_literal`, `json.unexpected_token`). Floats are explicitly out
|
||||
of scope;
|
||||
ints and floats (including exponents), `true`/`false`/`null`, whitespace,
|
||||
`next` positions, compact output and `Result` errors
|
||||
(`json.unexpected_eof`, `json.invalid_array`, `json.invalid_object`,
|
||||
`json.invalid_string`, `json.invalid_number`, `json.invalid_literal`,
|
||||
`json.unexpected_token`);
|
||||
* semantic fixture 63: a `Memory`-backed stack bytecode VM with instruction
|
||||
decode, PUSH/ADD/MUL/JMP/JZ/HALT, a stack region and two programs (arithmetic
|
||||
and conditional branch); no Rust VM or interpreter loop was added;
|
||||
|
||||
Reference in new issue
Block a user