mirror of
https://github.com/3lswear/webserv.git
synced 2025-10-29 13:27:59 +03:00
Sort
This commit is contained in:
@@ -6,10 +6,7 @@
|
||||
#include <iostream>
|
||||
#include <exception>
|
||||
|
||||
#include "TOMLNode.hpp"
|
||||
#include "TOMLParser.hpp"
|
||||
#include "Tokenizer.hpp"
|
||||
|
||||
#include "parse.hpp"
|
||||
/* struct location */
|
||||
/* { */
|
||||
/* std::string location; */
|
||||
@@ -41,10 +38,11 @@ namespace config
|
||||
}
|
||||
}
|
||||
|
||||
void parse(void)
|
||||
TOMLMap *parse(void)
|
||||
{
|
||||
std::string filename = "config/simple.toml";
|
||||
config::TOMLParser parser(filename);
|
||||
TOMLMap *root = parser.parse();
|
||||
config::display(root);
|
||||
return (root);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user