blob: 02dc4c9c3df9536dc2c0df75aaf5f1d65b45c0cb (
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"
namespace cru::parse {
// A parsing context contains all info that a program needs to know when parsing
// a input sequence of terminals.
class CRU_PARSE_API ParsingContext {
public:
ParsingContext(const ParsingAlgorithmContext* parsing_algorithm_context,
std::vector<Terminal*> input);
CRU_DELETE_COPY(ParsingContext)
CRU_DELETE_MOVE(ParsingContext)
~ParsingContext();
private:
const ParsingAlgorithmContext* parsing_algorithm_context_;
std::vector<Terminal*> input_;
};
} // namespace cru::parse
|