mirror of
https://github.com/3lswear/webserv.git
synced 2025-10-28 21:07:59 +03:00
feat: working subtables
This commit is contained in:
@@ -16,16 +16,18 @@ namespace config
|
||||
TOMLMap *root; //root of TOML tree
|
||||
/* toml_node *current; //node currently being parsed */
|
||||
Tokenizer tokenizer;
|
||||
|
||||
static std::vector<std::string> split_name(std::string name);
|
||||
static void put_to_subtable(TOMLMap *root,
|
||||
std::vector<std::string> full_name,
|
||||
toml_node *map_node);
|
||||
toml_node *map_node, toml_node::e_type type);
|
||||
|
||||
public:
|
||||
TOMLParser(const std::string filename);
|
||||
TOMLMap *parse(void);
|
||||
|
||||
toml_node *parseMap(void);
|
||||
void processMap(void);
|
||||
|
||||
void parseMapArray(void);
|
||||
|
||||
|
||||
@@ -26,8 +26,7 @@ namespace config
|
||||
NIL,
|
||||
OPEN_BRACKET,
|
||||
CLOSE_BRACKET,
|
||||
MAP_OPEN,
|
||||
MAP_CLOSE,
|
||||
MAP_DECL,
|
||||
MAPARRAY_DECL
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user