tree-sitter/src/rules/seq.h

23 lines
595 B
C
Raw Normal View History

2013-11-07 13:24:01 -08:00
#ifndef __tree_sitter__seq__
#define __tree_sitter__seq__
#include "rule.h"
namespace tree_sitter {
namespace rules {
class Seq : public Rule {
public:
Seq(const Rule &left, const Rule &right);
Seq(std::shared_ptr<const Rule> left, std::shared_ptr<const Rule> right);
TransitionMap<Rule> transitions() const;
Seq * copy() const;
bool operator==(const Rule& other) const;
std::string to_string() const;
private:
rule_ptr left;
rule_ptr right;
};
}
}
#endif