bool experiments

This commit is contained in:
3lswear
2022-01-12 12:40:37 +03:00
parent ac23dc656a
commit 8010863bda

View File

@@ -180,12 +180,25 @@ namespace config
token.type = BOOL;
token.value = "false";
file.seekg(4, std::ios_base::cur);
/* token.value = ""; */
/* while (std::isalpha(c)) */
/* { */
/* token.value += c; */
/* file.get(c); */
/* } */
std::cerr << "value is: " << token.value << std::endl;
std::cerr << "c is: " << c << std::endl;
}
else if (c == 't')
{
token.type = BOOL;
token.value = "true";
file.seekg(3, std::ios_base::cur);
while (std::isalpha(c))
{
token.value += c;
file.get(c);
}
/* file.seekg(3, std::ios_base::cur); */
}
else if (c == 'n')
{