Start work on building parse tables
This commit is contained in:
parent
99c216f78a
commit
928f4f9deb
19 changed files with 419 additions and 29 deletions
|
|
@ -1,9 +1,10 @@
|
|||
#include "rule.h"
|
||||
#include <set>
|
||||
|
||||
namespace tree_sitter {
|
||||
namespace rules {
|
||||
bool Rule::operator==(const rule_ptr other) const {
|
||||
return true;
|
||||
size_t Rule::hash_code() const {
|
||||
return std::hash<std::string>()(to_string());
|
||||
}
|
||||
|
||||
std::ostream& operator<<(std::ostream& stream, const Rule &rule)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue