mirror of
https://github.com/3lswear/webserv.git
synced 2025-10-28 21:07:59 +03:00
refactor: parseMapArray -> processMapArray
This commit is contained in:
@@ -29,7 +29,7 @@ namespace config
|
|||||||
toml_node *parseMap(void);
|
toml_node *parseMap(void);
|
||||||
void processMap(void);
|
void processMap(void);
|
||||||
|
|
||||||
void parseMapArray(void);
|
void processMapArray(void);
|
||||||
|
|
||||||
toml_node *parseString(void);
|
toml_node *parseString(void);
|
||||||
|
|
||||||
|
|||||||
@@ -150,7 +150,7 @@ namespace config
|
|||||||
return (node);
|
return (node);
|
||||||
}
|
}
|
||||||
|
|
||||||
void TOMLParser::parseMapArray(void)
|
void TOMLParser::processMapArray(void)
|
||||||
{
|
{
|
||||||
|
|
||||||
std::cerr << "Parsing MapArray" << std::endl;
|
std::cerr << "Parsing MapArray" << std::endl;
|
||||||
@@ -170,7 +170,7 @@ namespace config
|
|||||||
map_node = parseMap();
|
map_node = parseMap();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
throw std::logic_error("unexpected token in parseMapArray");
|
throw std::logic_error("unexpected token in processMapArray");
|
||||||
|
|
||||||
std::cout << current.value << std::endl;
|
std::cout << current.value << std::endl;
|
||||||
|
|
||||||
@@ -320,10 +320,10 @@ namespace config
|
|||||||
}
|
}
|
||||||
if (current.type == MAPARRAY_DECL)
|
if (current.type == MAPARRAY_DECL)
|
||||||
{
|
{
|
||||||
/* parseMapArray(); */
|
/* processMapArray(); */
|
||||||
tokenizer.set_last(NEWLINE);
|
tokenizer.set_last(NEWLINE);
|
||||||
tokenizer.rollBackToken();
|
tokenizer.rollBackToken();
|
||||||
parseMapArray();
|
processMapArray();
|
||||||
}
|
}
|
||||||
else if (current.type == MAP_DECL)
|
else if (current.type == MAP_DECL)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user