146 Commits

Author SHA1 Message Date
Vadim Godunko
f6ec3f1fb5 Move subprogram to public part to workaround compiler's bug. 2023-06-15 19:15:03 +04:00
Vadim Godunko
6962b085fa Rename Key to Key_Name to sync with element kind name. 2023-06-15 18:38:18 +04:00
Vadim Godunko
d46a9b17eb Subprogram to obtain current element of JSON stream. 2023-06-15 18:35:52 +04:00
Vadim Godunko
e11eb668bc Merge almost duplicate declarations of JSON_Event_Kind...
... and provide interface type for cursor on JSON stream.
2023-06-15 16:56:42 +04:00
Vadim Godunko
4eaca985aa Code refactoring: reuse At_End 2023-05-29 17:10:10 +04:00
Vadim Godunko
cd3aa16ce9 Code refactoring: reuse parse stack management subprograms. 2023-05-29 17:10:10 +04:00
Vadim Godunko
589cb6d2af Code refactoring: move common code to parent type/package. 2023-05-29 17:10:10 +04:00
Vadim Godunko
3ef9439b3f Code refactoring: rename implementation packages. 2023-05-29 17:10:10 +04:00
Vadim Godunko
7d75556e81 JSON5: Public API 2023-05-29 17:10:10 +04:00
Vadim Godunko
1127d1331d JSON5: Simplify code. 2023-05-29 17:10:10 +04:00
Vadim Godunko
d6ed52b02d Redefined subprogram as function that always return False. 2023-05-29 17:10:10 +04:00
Vadim Godunko
0832adf31e JSON5: Parse comment. 2023-05-29 17:10:10 +04:00
Vadim Godunko
80b8071a99 JSON5: Rewrite code to remove nested if statements. 2023-05-29 17:10:10 +04:00
Vadim Godunko
a7e31b7163 JSON5: Parse JSON5Identifier. 2023-05-29 17:10:10 +04:00
Vadim Godunko
4f0e3844a7 JSON5: Parse HexIntegerLiteral 2023-05-29 17:10:10 +04:00
Vadim Godunko
4e1592e2cf JSON5: Parsing of Decimal Literal. 2023-05-29 17:10:10 +04:00
Vadim Godunko
1a6a06e2ac JSON5: Support of Infinity and NaN. 2023-05-29 17:10:10 +04:00
Vadim Godunko
2f0fc26e61 JSON5: Support of leading plus sign of number. 2023-05-29 17:10:10 +04:00
Vadim Godunko
da68a1987f JSON5: Support of trailing comma after final element. 2023-05-29 17:10:10 +04:00
Vadim Godunko
0d8413e815 JSON5: Support of final comma separator in arrays. 2023-05-29 17:10:10 +04:00
Vadim Godunko
fcb33e4f93 Remove initial state, move initialization code. 2023-05-29 17:10:10 +04:00
Vadim Godunko
b073e76ecf Remove initial state, move initialization code into upper block. 2023-05-29 17:10:10 +04:00
Vadim Godunko
9f023995f9 Code refactoring.
Subprograms to parse Unicode escape sequence and to compute character
code from hexadecimal character are move to package level for reuse.
2023-05-29 17:10:10 +04:00
Vadim Godunko
c8fdaccf4b JSON5: Support of character escape sequences. 2023-05-29 17:10:10 +04:00
Vadim Godunko
fc72bfcc34 JSON5: Support of control characters in string value. 2023-05-29 17:10:10 +04:00