started adding more checks to the parser, some things settled, but mostly i have a lot more questions...

This commit is contained in:
Me
2022-07-31 04:20:04 +02:00
parent e5c2869172
commit 0cb49ffa5e
8 changed files with 205 additions and 159 deletions

View File

@@ -74,6 +74,9 @@ private:
void _set_location_values(LocationConfig *location, const std::string key, std::string value);
std::string _pre_set_val_check(const std::string key, \
const std::string value);
std::string _get_first_word(size_t *curr); // const?
std::string _get_rest_of_line(size_t *curr); // const?
@@ -87,7 +90,13 @@ private:
};
// def needs work line a better name an do i even need this?
// should it be in Utils instead?
class MyException : public std::invalid_argument
{
MyException(const std::string str)
: std::invalid_argument(str) {}
};
#endif