tree-sitter/src/compiler/rules/repeat.cc

16 lines
328 B
C++
Raw Normal View History

2014-03-09 21:37:21 -07:00
#include "compiler/rules/repeat.h"
#include "compiler/rule.h"
2013-11-15 08:46:45 -08:00
namespace tree_sitter {
namespace rules {
2014-03-09 23:51:33 -07:00
Repeat::Repeat(const Rule &rule) :
rule(std::make_shared<Rule>(rule)) {}
2014-03-09 19:49:35 -07:00
bool Repeat::operator==(const Repeat &other) const {
return rule->operator==(*other.rule);
2013-11-15 08:46:45 -08:00
}
} // namespace rules
} // namespace tree_sitter