blob: b29ee1a131ea69ba76b0119906988a39e4bc0a3f (
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 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
|