tree-sitter/src/rules/Pattern.h
Max Brunsfeld 11e3980319 Add helper functions for making shared pointers to rules
- start work on item set class
2013-11-10 14:59:40 -08:00

22 lines
501 B
C++

#ifndef __tree_sitter_pattern_h_
#define __tree_sitter_pattern_h_
#include "rule.h"
namespace tree_sitter {
namespace rules {
class Pattern : public Rule {
public:
Pattern(const char *string);
Pattern(const std::string &string);
TransitionMap<Rule> transitions() const;
bool operator==(const Rule& other) const;
std::string to_string() const;
private:
std::string value;
};
}
}
#endif