Move shared rule pointer factories into individual rule files

This commit is contained in:
Max Brunsfeld 2013-11-14 12:55:02 -08:00
parent 8a0a442a24
commit 040ec86000
19 changed files with 102 additions and 76 deletions

View file

@ -9,12 +9,14 @@ namespace tree_sitter {
public:
String(std::string value);
TransitionMap<Rule> transitions() const;
String * copy() const;
bool operator==(const Rule& other) const;
std::string to_string() const;
private:
const std::string value;
};
typedef std::shared_ptr<const String> string_ptr;
string_ptr str(const std::string &value);
}
}