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
13
src/compiler/util/string_helpers.h
Normal file
13
src/compiler/util/string_helpers.h
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#ifndef COMPILER_UTIL_STRING_HELPERS_H_
|
||||
#define COMPILER_UTIL_STRING_HELPERS_H_
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace tree_sitter {
|
||||
namespace util {
|
||||
void str_replace(std::string *input, const std::string &search, const std::string &replace);
|
||||
std::string escape_string(std::string input);
|
||||
}
|
||||
}
|
||||
|
||||
#endif // COMPILER_UTIL_STRING_HELPERS_H_
|
||||
Loading…
Add table
Add a link
Reference in a new issue