2014-03-09 22:05:17 -07:00
|
|
|
#ifndef COMPILER_RULES_REPEAT_H_
|
|
|
|
|
#define COMPILER_RULES_REPEAT_H_
|
2013-11-15 08:46:45 -08:00
|
|
|
|
2017-03-17 12:52:01 -07:00
|
|
|
#include <memory>
|
2013-11-15 08:46:45 -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 Repeat {
|
|
|
|
|
std::shared_ptr<Rule> rule;
|
2014-07-20 21:43:27 -07:00
|
|
|
|
2017-03-17 12:52:01 -07:00
|
|
|
explicit Repeat(const Rule &rule);
|
|
|
|
|
bool operator==(const Repeat &other) const;
|
2014-07-20 21:43:27 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace rules
|
|
|
|
|
} // namespace tree_sitter
|
2013-11-15 08:46:45 -08:00
|
|
|
|
2017-03-17 12:52:01 -07:00
|
|
|
#endif // COMPILER_RULES_REPEAT_H_
|