aboutsummaryrefslogtreecommitdiff
path: root/include/cru/parse/RecursiveDescentAlgorithmContext.h
blob: 00acf47907956b068f91f0444412aea65d34a7e6 (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.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