From aa923364615b77e152d532b021fe1536fcf96a50 Mon Sep 17 00:00:00 2001 From: crupest Date: Wed, 29 Dec 2021 21:57:33 +0800 Subject: ... --- include/cru/parse/RecursiveDescentAlgorithm.hpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 include/cru/parse/RecursiveDescentAlgorithm.hpp (limited to 'include/cru/parse/RecursiveDescentAlgorithm.hpp') diff --git a/include/cru/parse/RecursiveDescentAlgorithm.hpp b/include/cru/parse/RecursiveDescentAlgorithm.hpp new file mode 100644 index 00000000..c12a84f6 --- /dev/null +++ b/include/cru/parse/RecursiveDescentAlgorithm.hpp @@ -0,0 +1,19 @@ +#pragma once + +#include "ParsingAlgorithm.hpp" + +namespace cru::parse { +class RecursiveDescentAlgorithm : public ParsingAlgorithm { + public: + RecursiveDescentAlgorithm() = default; + + CRU_DELETE_COPY(RecursiveDescentAlgorithm) + CRU_DELETE_MOVE(RecursiveDescentAlgorithm) + + ~RecursiveDescentAlgorithm() override = default; + + public: + bool CanHandle(Grammar* grammar) const override; + ParsingAlgorithmContext* CreateContext(Grammar* grammar) const override; +}; +} // namespace cru::parse -- cgit v1.2.3