-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathErrors.h
13 lines (7 loc) · 1.13 KB
/
Errors.h
1
2
3
4
5
6
7
8
9
10
11
12
13
#pragma once
#define keyword_err ("Row position: " + to_string(lexer->get_token_cords().first) + " Position in line: " + to_string(lexer->get_token_cords().second) + " expected another key word\n").c_str()
#define spec_symbol_err ("Row position: " + to_string(lexer->get_token_cords().first) + " Position in line: " + to_string(lexer->get_token_cords().second) + " expected spec symbol\n").c_str()
#define token_type_err ("Row position: " + to_string(lexer->get_token_cords().first) + " Position in line: " + to_string(lexer->get_token_cords().second) + " expected another type\n").c_str()
#define ident_err ("Row position: " + to_string(lexer->get_token_cords().first) + " Position in line: " + to_string(lexer->get_token_cords().second) + " expected ident\n").c_str()
#define compatible_error cout << "Row position: " + to_string(lexer->get_token_cords().first) + " Position in line: " + to_string(lexer->get_token_cords().second) + " compatible_error\n";
#define no_op_between cout << "Row position: " + to_string(lexer->get_token_cords().first) + " Position in line: " + to_string(lexer->get_token_cords().second) + " no_op_between\n";