blob: 1b888da9aa69a9cf25ff4fd9e0828c757c2a069c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#pragma once
#include "ParsingAlgorithmContext.hpp"
#include "cru/parse/ParsingTreeNode.hpp"
#include "cru/parse/RecursiveDescentAlgorithm.hpp"
#include "cru/parse/Terminal.hpp"
namespace cru::parse {
class 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
|