-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy patherror.h
More file actions
26 lines (20 loc) · 754 Bytes
/
error.h
File metadata and controls
26 lines (20 loc) · 754 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/**
* Project: Implementace překladače imperativního jazyka IFJ17.
*
* @brief Error definitions.
*
* @author Timotej Halás <xhalas10@stud.fit.vutbr.cz>
* @author Dominik Harmim <xharmi00@stud.fit.vutbr.cz>
*/
#ifndef _ERROR_H
#define _ERROR_H
// Error codes.
#define SCANNER_TOKEN_OK 0 /// Token is OK.
#define SYNTAX_OK 0 /// Syntax is ok.
#define SCANNER_ERROR_LEX 1 /// Lex structure error.
#define SYNTAX_ERR 2 /// Syntax error.
#define SEM_ERR_UNDEFINED_VAR 3 /// Semantic error - undefined variable.
#define SEM_ERR_TYPE_COMPAT 4 /// Semantic error - types uncompatible.
#define SEM_ERR_OTHER 6 /// Semantic error - other.
#define ERROR_INTERNAL 99 /// Internal error, eg. malloc error etc.
#endif //_ERROR_H