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