bug fixes, tests passed, result modifier (!) added to function arguments and to types

This commit is contained in:
ProgramSnail 2023-07-24 13:01:34 +03:00
parent 4470454838
commit 3914ff7d8b
16 changed files with 418 additions and 62 deletions

View file

@ -2,6 +2,7 @@
#include "basic_nodes.hpp"
#include "tree_sitter_wrapper.hpp"
#include "utils.hpp"
#include <iostream>
@ -15,11 +16,6 @@ inline void print_position(std::ostream &out,
<< ']';
}
inline void handle_general_error(const std::string &message) {
std::cerr << "\x1b[1;31mGeneral Error:\x1b[0m " << message << ".\n";
exit(1);
}
inline void
handle_internal_error(const std::string &message, const std::string &place,
std::optional<nodes::Node> node = std::nullopt) {