Move rule transitions to visitor class

This commit is contained in:
Max Brunsfeld 2013-12-18 20:58:05 -08:00
parent 84a7afbca5
commit b1bbeae2a1
29 changed files with 205 additions and 125 deletions

View file

@ -8,10 +8,10 @@ namespace tree_sitter {
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:
void accept(RuleVisitor &visitor) const;
const std::string value;
};