Move rule transitions to visitor class
This commit is contained in:
parent
84a7afbca5
commit
b1bbeae2a1
29 changed files with 205 additions and 125 deletions
|
|
@ -3,10 +3,6 @@
|
|||
|
||||
namespace tree_sitter {
|
||||
namespace rules {
|
||||
size_t Rule::hash_code() const {
|
||||
return std::hash<std::string>()(to_string());
|
||||
}
|
||||
|
||||
std::ostream& operator<<(std::ostream& stream, const Rule &rule)
|
||||
{
|
||||
stream << rule.to_string();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue