Expand regex/string rules as part of grammar preparation
This makes it possible to report errors in regex parsing
This commit is contained in:
parent
5245bc01fe
commit
649f200831
26 changed files with 883 additions and 651 deletions
|
|
@ -55,6 +55,7 @@ namespace tree_sitter {
|
|||
class GrammarError {
|
||||
public:
|
||||
GrammarError(GrammarErrorType type, std::string message);
|
||||
bool operator==(const GrammarError &other) const;
|
||||
GrammarErrorType type;
|
||||
std::string message;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue