tree-sitter/src/rules/choice.h
Max Brunsfeld 11e3980319 Add helper functions for making shared pointers to rules
- start work on item set class
2013-11-10 14:59:40 -08:00

21 lines
No EOL
482 B
C++

#ifndef __tree_sitter__choice__
#define __tree_sitter__choice__
#include "rule.h"
namespace tree_sitter {
namespace rules {
class Choice : public Rule {
public:
Choice(rule_ptr left, rule_ptr right);
TransitionMap<Rule> transitions() const;
bool operator==(const Rule& other) const;
std::string to_string() const;
private:
rule_ptr left;
rule_ptr right;
};
}
}
#endif