2013-11-07 13:24:01 -08:00
|
|
|
#ifndef __TreeSitter__rules__
|
|
|
|
|
#define __TreeSitter__rules__
|
|
|
|
|
|
|
|
|
|
#include "rules/rule.h"
|
2013-11-10 14:24:25 -08:00
|
|
|
|
|
|
|
|
namespace tree_sitter {
|
|
|
|
|
namespace rules {
|
|
|
|
|
rule_ptr blank();
|
|
|
|
|
rule_ptr sym(const std::string &name);
|
|
|
|
|
rule_ptr character(char value);
|
|
|
|
|
rule_ptr str(const std::string &value);
|
|
|
|
|
rule_ptr pattern(const std::string &value);
|
|
|
|
|
rule_ptr seq(const std::initializer_list<rule_ptr> &rules);
|
|
|
|
|
rule_ptr choice(const std::initializer_list<rule_ptr> &rules);
|
|
|
|
|
}
|
|
|
|
|
}
|
2013-11-05 22:15:19 -08:00
|
|
|
|
|
|
|
|
#endif
|