#include #include #include using namespace std; #include "include/colors.h" #include "include/tokenize.h" void print_error_position(vector history, CodePosition pos) { if (pos.column == -1 || pos.line == -1) return; cout << endl; string line = history[pos.line]; printf(BOLD "%4d " RESET , pos.line+1); cout << line << endl; for (int i=0; i < pos.column + 5; i++) cout << " "; cout << BOLD RED "^--" RESET << endl; }