From 74bb9cd27242b9320f99ff4d2b50c3051576cc14 Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 8 Feb 2022 16:53:51 +0800 Subject: ... --- include/cru/parse/ParsingAlgorithmContext.hpp | 28 --------------------------- 1 file changed, 28 deletions(-) delete mode 100644 include/cru/parse/ParsingAlgorithmContext.hpp (limited to 'include/cru/parse/ParsingAlgorithmContext.hpp') diff --git a/include/cru/parse/ParsingAlgorithmContext.hpp b/include/cru/parse/ParsingAlgorithmContext.hpp deleted file mode 100644 index b959462c..00000000 --- a/include/cru/parse/ParsingAlgorithmContext.hpp +++ /dev/null @@ -1,28 +0,0 @@ -#pragma once -#include -#include "Grammar.hpp" -#include "cru/parse/ParsingTreeNode.hpp" -#include "cru/parse/Terminal.hpp" - -namespace cru::parse { -class ParsingAlgorithm; - -// A parsing algorithm context contains all data a parsing algorithm needs to -// parse for a grammar. It does not relate to any input. For example, it can -// contain any state machine. -class CRU_PARSE_API ParsingAlgorithmContext { - public: - ParsingAlgorithmContext(Grammar* grammar, const ParsingAlgorithm* algorithm); - - CRU_DELETE_COPY(ParsingAlgorithmContext) - CRU_DELETE_MOVE(ParsingAlgorithmContext) - - virtual ~ParsingAlgorithmContext(); - - virtual ParsingTreeNode* Parse(const std::vector& input) = 0; - - private: - Grammar* grammar_; - const ParsingAlgorithm* algorithm_; -}; -} // namespace cru::parse -- cgit v1.2.3