blob: a6549f8a8c11ef39a1819e77c9d1109f9f21080e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#include "cru/parse/RecursiveDescentAlgorithm.hpp"
#include "cru/parse/ParsingAlgorithmContext.hpp"
#include "cru/parse/RecursiveDescentAlgorithmContext.hpp"
namespace cru::parse {
bool RecursiveDescentAlgorithm::CanHandle(Grammar *grammar) const {
return true;
}
ParsingAlgorithmContext *RecursiveDescentAlgorithm::CreateContext(
Grammar *grammar) const {
return new RecursiveDescentAlgorithmContext(grammar, this);
}
} // namespace cru::parse
|