mirror of
https://github.com/tree-sitter/tree-sitter.git
synced 2026-09-10 07:26:23 -04:00
24 lines
561 B
C++
24 lines
561 B
C++
#ifndef __tree_sitter__seq__
|
|
#define __tree_sitter__seq__
|
|
|
|
#include "rule.h"
|
|
|
|
namespace tree_sitter {
|
|
namespace rules {
|
|
class Seq : public Rule {
|
|
public:
|
|
Seq(rule_ptr left, rule_ptr right);
|
|
TransitionMap<Rule> transitions() const;
|
|
bool operator==(const Rule& other) const;
|
|
std::string to_string() const;
|
|
private:
|
|
const rule_ptr left;
|
|
const rule_ptr right;
|
|
};
|
|
|
|
rule_ptr seq(const std::initializer_list<rule_ptr> &rules);
|
|
}
|
|
}
|
|
|
|
#endif
|