rename pattern rule files

This commit is contained in:
Max Brunsfeld 2013-11-14 21:26:42 -08:00
parent ecd317ccd9
commit 2102d542e1
3 changed files with 6 additions and 6 deletions

25
src/rules/pattern.h Normal file
View file

@ -0,0 +1,25 @@
#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 std::string &string);
TransitionMap<Rule> transitions() const;
bool operator==(const Rule& other) const;
std::string to_string() const;
rule_ptr to_rule_tree() const;
private:
const std::string value;
};
typedef std::shared_ptr<const Pattern> pattern_ptr;
pattern_ptr pattern(const std::string &value);
}
}
#endif