refactor: parseMapArray -> processMapArray

This commit is contained in:
3lswear
2022-01-23 13:54:08 +03:00
parent 2e51c43967
commit 1dcd3f6d36
2 changed files with 5 additions and 5 deletions

View File

@@ -29,7 +29,7 @@ namespace config
toml_node *parseMap(void);
void processMap(void);
void parseMapArray(void);
void processMapArray(void);
toml_node *parseString(void);

View File

@@ -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)
{