Remove rules that don't need to be public from compiler.h

This commit is contained in:
Max Brunsfeld 2014-02-20 23:05:32 -08:00
parent a34da59889
commit 688fe993cf
9 changed files with 64 additions and 47 deletions

View file

@ -20,17 +20,6 @@ namespace tree_sitter {
return make_shared<Blank>();
}
rule_ptr character(const set<CharacterRange> &ranges) {
return make_shared<CharacterSet>(ranges);
}
rule_ptr character(const set<CharacterRange> &ranges, bool sign) {
if (sign)
return character(ranges);
else
return CharacterSet(ranges).complement().copy();
}
rule_ptr choice(const vector<rule_ptr> &rules) {
return Choice::Build(rules);
}