23 lines
508 B
C++
23 lines
508 B
C++
#ifndef __tree_sitter__string__
|
|
#define __tree_sitter__string__
|
|
|
|
#include "rule.h"
|
|
|
|
namespace tree_sitter {
|
|
namespace rules {
|
|
class String : public Rule {
|
|
public:
|
|
String(std::string value);
|
|
|
|
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 std::string value;
|
|
};
|
|
}
|
|
}
|
|
|
|
#endif
|