|
topazc
|
Header file for defining thrown exceptions by the compiler. More...
#include <cstdint>#include <string>

Go to the source code of this file.
Enumerations | |
| enum | SubsystemType { SUB_LEXER , SUB_PARSER , SUB_SEMANTIC , SUB_CODEGEN } |
| Subsystem from which the exception throwed. More... | |
Functions | |
| void | throw_exception (SubsystemType type, std::string msg, uint32_t line, std::string file_name, bool is_debug) |
| Function for throwing exception. | |
Header file for defining thrown exceptions by the compiler.
Definition in file exception.hpp.
| enum SubsystemType |
Subsystem from which the exception throwed.
| Enumerator | |
|---|---|
| SUB_LEXER | Lexer subsystem |
| SUB_PARSER | Parser subsystem |
| SUB_SEMANTIC | Semantic subsystem |
| SUB_CODEGEN | Code generator subsystem |
Definition at line 14 of file exception.hpp.
| void throw_exception | ( | SubsystemType | type, |
| std::string | msg, | ||
| uint32_t | line, | ||
| std::string | file_name, | ||
| bool | is_debug ) |
Function for throwing exception.
This function throwing exception based passed arguments
| type | Subsystem from which the exception throwned |
| msg | Exception message |
| line | Line where exception throwed |
| file_name | File where exception throwed |
| is_debug | Flag for print debug information |
Definition at line 30 of file exception.cpp.
