diff options
Diffstat (limited to 'include/cru/parse/RecursiveDescentAlgorithmContext.h')
-rw-r--r-- | include/cru/parse/RecursiveDescentAlgorithmContext.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/include/cru/parse/RecursiveDescentAlgorithmContext.h b/include/cru/parse/RecursiveDescentAlgorithmContext.h new file mode 100644 index 00000000..00acf479 --- /dev/null +++ b/include/cru/parse/RecursiveDescentAlgorithmContext.h @@ -0,0 +1,22 @@ +#pragma once + +#include "ParsingAlgorithmContext.h" +#include "cru/parse/ParsingTreeNode.h" +#include "cru/parse/RecursiveDescentAlgorithm.h" +#include "cru/parse/Terminal.h" + +namespace cru::parse { +class CRU_PARSE_API RecursiveDescentAlgorithmContext : public ParsingAlgorithmContext { + public: + RecursiveDescentAlgorithmContext(Grammar* grammar, + const RecursiveDescentAlgorithm* algorithm); + + CRU_DELETE_COPY(RecursiveDescentAlgorithmContext) + CRU_DELETE_MOVE(RecursiveDescentAlgorithmContext) + + ~RecursiveDescentAlgorithmContext() override; + + public: + ParsingTreeNode* Parse(const std::vector<Terminal*>& input) override; +}; +} // namespace cru::parse |