1
Тесты анализатора JSON5-файлов =================================
2
--- test/source/json5/analyze/ex01.json5 :
12
--- test/source/json5/analyze/ex02.json5 :
16
Константы и переменные:
21
--- test/source/json5/analyze/ex03.json5 :
25
unquoted: 'and you can quote me on that',
26
singleQuotes: 'I can use "double quotes" here',
27
lineBreaks: "Look, Mom! No \\n's!",
29
leadingDecimalPoint: .8675309, andTrailing: 8675309.,
31
trailingComma: 'in objects', andIn: ['arrays',],
32
"backwardsCompatible": "with JSON",
35
Ошибка: The numeric value is formatted incorrectly
36
Позиция разбора: test/source/json5/analyze/ex03.json5:8:24[8,32]
37
Ошибка: Irrelevant symbol '+', expected: number, string constant, identifier, '{', '[', 'true', 'false' or 'null'
38
Позиция разбора: test/source/json5/analyze/ex03.json5:9:17[9,18]
40
Ошибка: Irrelevant symbol '1', expected: ,
41
Позиция разбора: test/source/json5/analyze/ex03.json5:9:18[9,19]
42
--- test/source/json5/analyze/ex04.json5 :
50
Константы и переменные:
58
"6" Annotation, [4, 6]
61
--- test/source/json5/analyze/ex05.json5 :
62
["f", 4, "a", 5,]--- ANALYZE :
63
Константы и переменные:
64
"f" Annotation, [0, 1]
66
"a" Annotation, [0, 9]