aboutsummaryrefslogtreecommitdiff
path: root/include/cru/parse/ParsingAlgorithmContext.hpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-02-08 16:53:51 +0800
committercrupest <crupest@outlook.com>2022-02-08 16:53:51 +0800
commit74bb9cd27242b9320f99ff4d2b50c3051576cc14 (patch)
tree744bac5799c593d1d6f81e7b09581bea626f2cde /include/cru/parse/ParsingAlgorithmContext.hpp
parentb90c398de829d1ba5329651d75bae82f5e4085fe (diff)
downloadcru-74bb9cd27242b9320f99ff4d2b50c3051576cc14.tar.gz
cru-74bb9cd27242b9320f99ff4d2b50c3051576cc14.tar.bz2
cru-74bb9cd27242b9320f99ff4d2b50c3051576cc14.zip
...
Diffstat (limited to 'include/cru/parse/ParsingAlgorithmContext.hpp')
-rw-r--r--include/cru/parse/ParsingAlgorithmContext.hpp28
1 files changed, 0 insertions, 28 deletions
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 <vector>
-#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<Terminal*>& input) = 0;
-
- private:
- Grammar* grammar_;
- const ParsingAlgorithm* algorithm_;
-};
-} // namespace cru::parse