Add character rule class

This commit is contained in:
Max Brunsfeld 2013-11-07 08:22:56 -08:00
parent 061d8a8efc
commit 849f2ee195
3 changed files with 78 additions and 30 deletions

View file

@ -36,6 +36,17 @@ namespace tree_sitter {
private:
int id;
};
class Char : public Rule {
public:
Char(char value);
TransitionMap<Rule> transitions() const;
Char * copy() const;
bool operator==(const Rule& other) const;
std::string to_string() const;
private:
char value;
};
class Choice : public Rule {
public: