aboutsummaryrefslogtreecommitdiff
path: root/include/cru/parse/RecursiveDescentAlgorithm.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/cru/parse/RecursiveDescentAlgorithm.hpp')
-rw-r--r--include/cru/parse/RecursiveDescentAlgorithm.hpp19
1 files changed, 19 insertions, 0 deletions
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