mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 05:21:49 +00:00
json, toml parsers/writers update
This commit is contained in:
parent
afa05ca99d
commit
8588e582b6
5 changed files with 237 additions and 64 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue