Commit 18abde9e authored by Ronan's avatar Ronan

fix(Parser): avoid memory leak => inaccessible base class destructor

parent 4ae441c7
......@@ -184,6 +184,8 @@ struct ParserLocalContext{
class ParserContextBase{
public:
virtual ~ParserContextBase() = default;
virtual void beginParse(ParserLocalContext &ctx, const std::shared_ptr<Recognizer> &rec)=0;
virtual void endParse(const ParserLocalContext &ctx, const std::string &input, size_t begin, size_t count)=0;
virtual std::shared_ptr<HandlerContextBase> branch()=0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment