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/Parser.hpp

25 lines
392 B
C++
Raw Normal View History

2023-09-09 13:09:43 +00:00
#ifndef jk_PARSER_HPP
#define jk_PARSER_HPP
#include "commons.hpp"
#include "Logger.hpp"
#include "Lexer.hpp"
namespace jk
{
class Parser
{
public:
explicit Parser(Logger& logger, std::shared_ptr<Lexer> lexer);
virtual ~Parser();
std::shared_ptr<Node> parse(std::string const& source);
private:
Logger& m_logger;
std::shared_ptr<Lexer> m_lexer;
};
}
#endif