23 lines
595 B
C
23 lines
595 B
C
|
|
#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
|