Move shared rule pointer factories into individual rule files
This commit is contained in:
parent
8a0a442a24
commit
040ec86000
19 changed files with 102 additions and 76 deletions
|
|
@ -4,7 +4,10 @@
|
|||
namespace tree_sitter {
|
||||
namespace rules {
|
||||
Pattern::Pattern(const std::string &string) : value(string) {};
|
||||
Pattern::Pattern(const char *string) : value(string) {};
|
||||
|
||||
pattern_ptr pattern(const std::string &value) {
|
||||
return std::make_shared<Pattern>(value);
|
||||
}
|
||||
|
||||
TransitionMap<Rule> Pattern::transitions() const {
|
||||
return tree_sitter::TransitionMap<Rule>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue