25 lines
392 B
C++
25 lines
392 B
C++
|
#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
|