tree-sitter/src/compiler/rules/string.h

24 lines
571 B
C
Raw Normal View History

2013-11-07 18:30:00 -08:00
#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);
TransitionMap<Rule> transitions() const;
bool operator==(const Rule& other) const;
std::string to_string() const;
private:
2013-11-13 20:22:06 -08:00
const std::string value;
2013-11-07 18:30:00 -08:00
};
typedef std::shared_ptr<const String> string_ptr;
string_ptr str(const std::string &value);
2013-11-07 18:30:00 -08:00
}
}
#endif