Give better symbol names to generated tokens
This should make debugging easier
This commit is contained in:
parent
2226234924
commit
e1ac62edc5
14 changed files with 1017 additions and 842 deletions
|
|
@ -7,7 +7,6 @@
|
|||
namespace tree_sitter {
|
||||
namespace rules {
|
||||
class Pattern : public Rule {
|
||||
const std::string value;
|
||||
public:
|
||||
explicit Pattern(const std::string &string);
|
||||
|
||||
|
|
@ -17,6 +16,7 @@ namespace tree_sitter {
|
|||
std::string to_string() const;
|
||||
void accept(Visitor *visitor) const;
|
||||
|
||||
const std::string value;
|
||||
rule_ptr to_rule_tree() const;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue