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

17 lines
407 B
C++
Raw Normal View History

2014-03-09 21:37:21 -07:00
#include "compiler/rules/seq.h"
#include "compiler/rule.h"
namespace tree_sitter {
namespace rules {
Seq::Seq(const Rule &left, const Rule &right) :
left(std::make_shared<Rule>(left)),
right(std::make_shared<Rule>(right)) {}
bool Seq::operator==(const Seq &other) const {
return left->operator==(*other.left) && right->operator==(*other.right);
2015-07-31 16:32:24 -07:00
}
} // namespace rules
} // namespace tree_sitter