This repository has been archived on 2023-09-09. You can view files and clone it, but cannot push or open issues/pull-requests.
skemla/lib/Factory.hpp

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