25 lines
398 B
C++
25 lines
398 B
C++
|
#ifndef jk_STATICPASS_HPP
|
||
|
#define jk_STATICPASS_HPP
|
||
|
|
||
|
#include "commons.hpp"
|
||
|
#include "SymTable.hpp"
|
||
|
#include "Node.hpp"
|
||
|
|
||
|
namespace jk
|
||
|
{
|
||
|
class StaticPass
|
||
|
{
|
||
|
public:
|
||
|
explicit StaticPass(std::shared_ptr<SymTable> sym, Logger& logger);
|
||
|
virtual ~StaticPass();
|
||
|
|
||
|
void pass(std::shared_ptr<Node> node);
|
||
|
|
||
|
private:
|
||
|
std::shared_ptr<SymTable> m_sym;
|
||
|
Logger& m_logger;
|
||
|
};
|
||
|
}
|
||
|
|
||
|
#endif
|