json, toml parsers/writers update

This commit is contained in:
MihailRis
2023-12-03 00:41:06 +03:00
parent afa05ca99d
commit 8588e582b6
5 changed files with 237 additions and 64 deletions
+6 -1
View File
@@ -5,6 +5,11 @@
#include <stdexcept>
#include "../typedefs.h"
union number_u {
double fval;
int64_t ival;
};
inline int is_box(int c) {
switch (c) {
case 'B':
@@ -73,7 +78,7 @@ protected:
std::string parseName();
int64_t parseSimpleInt(int base);
double parseNumber(int sign);
bool parseNumber(int sign, number_u& out);
std::string parseString(char chr);
parsing_error error(std::string message);