23 lines
552 B
C++
23 lines
552 B
C++
#ifndef COMPILER_RULES_REPEAT_H_
|
|
#define COMPILER_RULES_REPEAT_H_
|
|
|
|
#include "compiler/rules/rule.h"
|
|
|
|
namespace tree_sitter {
|
|
namespace rules {
|
|
class Repeat : public Rule {
|
|
public:
|
|
Repeat(rule_ptr content);
|
|
|
|
bool operator==(const Rule& other) const;
|
|
size_t hash_code() const;
|
|
rule_ptr copy() const;
|
|
std::string to_string() const;
|
|
void accept(Visitor *visitor) const;
|
|
|
|
const rule_ptr content;
|
|
};
|
|
}
|
|
}
|
|
|
|
#endif // COMPILER_RULES_REPEAT_H_
|