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

27 lines
439 B
C++
Raw Permalink Normal View History

2023-09-09 13:09:43 +00:00
#ifndef jk_FACTORY_HPP
#define jk_FACTORY_HPP
#include "Lexer.hpp"
#include "Parser.hpp"
#include "Logger.hpp"
#include "commons.hpp"
namespace jk
{
class Factory
{
public:
explicit Factory(Logger& logger, std::filesystem::path path);
virtual ~Factory();
std::shared_ptr<Lexer> make_lexer();
std::shared_ptr<Parser> make_parser();
private:
Logger& m_logger;
std::filesystem::path m_path;
};
}
#endif