Move public rule functions out of rule namespace
This way, there's only one public namespace: tree_sitter
This commit is contained in:
parent
e386c634aa
commit
bd77ab1ac9
66 changed files with 127 additions and 167 deletions
|
|
@ -13,10 +13,10 @@ namespace tree_sitter {
|
|||
class SyntaxGrammar {
|
||||
public:
|
||||
const std::string &rule_name(const rules::Symbol &symbol) const;
|
||||
const rules::rule_ptr &rule(const rules::Symbol &symbol) const;
|
||||
const rule_ptr &rule(const rules::Symbol &symbol) const;
|
||||
|
||||
std::vector<std::pair<std::string, rules::rule_ptr>> rules;
|
||||
std::vector<std::pair<std::string, rules::rule_ptr>> aux_rules;
|
||||
std::vector<std::pair<std::string, rule_ptr>> rules;
|
||||
std::vector<std::pair<std::string, rule_ptr>> aux_rules;
|
||||
std::set<rules::Symbol> ubiquitous_tokens;
|
||||
std::set<std::set<rules::Symbol>> expected_conflicts;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue