fixes, more information in errors

This commit is contained in:
ProgramSnail 2023-05-05 11:59:02 +03:00
parent a11ddbd25f
commit b686fe00fb
10 changed files with 356 additions and 65 deletions

View file

@ -121,6 +121,10 @@ public:
~ParseTree() {
ts_tree_delete(tree_);
}
bool IsProperlyParsed() { // TODO: check
return !GetRoot().HasError();
}
private:
TSTree* tree_;
std::string source_; // for token value extraction