aboutsummaryrefslogtreecommitdiff
path: root/src/parse/RecursiveDescentAlgorithm.cpp
blob: 8ff2571dcd9651fc42519179527f9df6c0fbc00f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "cru/parse/RecursiveDescentAlgorithm.hpp"
#include "cru/parse/ParsingAlgorithmContext.hpp"
#include "cru/parse/RecursiveDescentAlgorithmContext.hpp"

namespace cru::parse {
bool RecursiveDescentAlgorithm::CanHandle(Grammar *grammar) const {
  CRU_UNUSED(grammar);
  return true;
}

ParsingAlgorithmContext *RecursiveDescentAlgorithm::CreateContext(
    Grammar *grammar) const {
  return new RecursiveDescentAlgorithmContext(grammar, this);
}
}  // namespace cru::parse