Get rid of types for shared pointers to rule subclasses

This commit is contained in:
Max Brunsfeld 2013-12-19 20:05:57 -08:00
parent c3b8a73831
commit 9f78d72a7c
14 changed files with 53 additions and 37 deletions

View file

@ -5,7 +5,7 @@ namespace tree_sitter {
namespace rules {
String::String(std::string value) : value(value) {};
string_ptr str(const std::string &value) {
rule_ptr str(const std::string &value) {
return std::make_shared<String>(value);
}