2014-03-09 22:05:17 -07:00
|
|
|
#ifndef COMPILER_RULES_SEQ_H_
|
|
|
|
|
#define COMPILER_RULES_SEQ_H_
|
2013-11-07 13:24:01 -08:00
|
|
|
|
2017-03-17 12:52:01 -07:00
|
|
|
#include <memory>
|
2014-02-16 22:13:08 -08:00
|
|
|
#include <vector>
|
2013-11-07 13:24:01 -08:00
|
|
|
|
2014-07-20 21:43:27 -07:00
|
|
|
namespace tree_sitter {
|
|
|
|
|
namespace rules {
|
2013-12-30 23:52:38 -08:00
|
|
|
|
2017-03-17 12:52:01 -07:00
|
|
|
struct Rule;
|
2013-12-18 20:58:05 -08:00
|
|
|
|
2017-03-17 12:52:01 -07:00
|
|
|
struct Seq {
|
|
|
|
|
std::shared_ptr<Rule> left;
|
|
|
|
|
std::shared_ptr<Rule> right;
|
2014-07-20 21:43:27 -07:00
|
|
|
|
2017-03-17 12:52:01 -07:00
|
|
|
Seq(const Rule &left, const Rule &right);
|
|
|
|
|
bool operator==(const Seq &other) const;
|
2014-07-20 21:43:27 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace rules
|
|
|
|
|
} // namespace tree_sitter
|
2013-11-07 13:24:01 -08:00
|
|
|
|
2017-03-17 12:52:01 -07:00
|
|
|
#endif // COMPILER_RULES_SEQ_H_
|