intermediate changes

This commit is contained in:
3lswear
2022-01-16 23:06:06 +03:00
parent ebd09bbcdc
commit 9c19e936b6
5 changed files with 79 additions and 5 deletions

View File

@@ -36,6 +36,15 @@ namespace config
std::cerr << e.what() << std::endl;
break;
}
if (nextToken.type == MAPARRAY_DECL)
{
parseMapArray();
continue;
}
else
{
/* take key make decision */
}
std::string key = nextToken.value;
std::cerr << key << std::endl;
if (tokenizer.getToken().type != ASSIGN)
@@ -257,8 +266,8 @@ namespace config
std::string key;
key = "";
/* root = parseMap(); */
root = parseMapArray();
root = parseMap();
/* root = parseMapArray(); */
return (root);
/* while (tokenizer.hasMoreTokens()) */