27 lines
439 B
C++
27 lines
439 B
C++
#ifndef sk_FACTORY_HPP
|
|
#define sk_FACTORY_HPP
|
|
|
|
#include "commons.hpp"
|
|
#include "Logger.hpp"
|
|
#include "Lexer.hpp"
|
|
#include "Parser.hpp"
|
|
|
|
namespace sk
|
|
{
|
|
class Factory
|
|
{
|
|
public:
|
|
explicit Factory(std::filesystem::path path, Logger& logger);
|
|
virtual ~Factory();
|
|
|
|
std::shared_ptr<Lexer> make_lexer();
|
|
std::shared_ptr<Parser> make_parser();
|
|
|
|
private:
|
|
std::filesystem::path m_path;
|
|
Logger& m_logger;
|
|
};
|
|
}
|
|
|
|
#endif
|