Refactor classes representing individual characters & character classes

This commit is contained in:
Max Brunsfeld 2013-12-21 23:53:26 -08:00
parent 8dec6c90f4
commit 9667b3fd6c
17 changed files with 167 additions and 120 deletions

View file

@ -1,20 +0,0 @@
#ifndef __tree_sitter__char__
#define __tree_sitter__char__
#include "rule.h"
namespace tree_sitter {
namespace rules {
class Char : public Rule {
public:
Char(char value);
bool operator==(const Rule& other) const;
std::string to_string() const;
void accept(Visitor &visitor) const;
const char value;
};
}
}
#endif