partition fixes, main file fix

This commit is contained in:
ProgramSnail 2023-05-11 15:14:02 +03:00
parent a97a6125de
commit 93ac5f8e33
8 changed files with 33 additions and 18 deletions

View file

@ -29,6 +29,11 @@ inline void HandleParsingError(const std::string& message,
exit(1);
}
inline void HandleGeneralError(const std::string& message) {
std::cout << "General Error: " << message << ".\n";
exit(1);
}
inline void HandleInternalError(const std::string& message, const std::string& place) {
std::cout << "Internal Error: " << message << " at " << place << ".\n";
exit(1);

View file

@ -194,8 +194,7 @@ struct ArrayExpression;
struct PartitionName {
BaseNode base;
std::vector<TypeIdentifier> path;
NameIdentifier name;
std::vector<AnyIdentifier> path; // name is last element of path
};
struct NameExpression;