Start work on building parse tables

This commit is contained in:
Max Brunsfeld 2013-12-15 14:41:51 -08:00
parent 99c216f78a
commit 928f4f9deb
19 changed files with 419 additions and 29 deletions

View file

@ -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)