-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStatusTypes.py
More file actions
25 lines (24 loc) · 1.15 KB
/
Copy pathStatusTypes.py
File metadata and controls
25 lines (24 loc) · 1.15 KB
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
"""
Statuses that the cfpl would undergo along with their error messages
"""
STATUS_OK = 'Okay'
STATUS_UNIDENTIFIED_TOKEN = 'Invalid token '
STATUS_UNDEFINED_VARIABLE = 'Undefined variable '
STATUS_INVALID_OPERATION = 'Invalid operation '
STATUS_MODULO_ON_FLOAT = 'Operator modulo(%) can\'t be operated on type float'
STATUS_MISSING_START = 'Missing START'
STATUS_MISSING_STOP = 'Missing STOP'
STATUS_MISSING_OPEN_PAR = 'Missing ('
STATUS_MISSING_CLOSE_PAR = 'Missing )'
STATUS_MISSING_OPEN_BRAC = 'Missing ['
STATUS_MISSING_CLOSE_BRAC = 'Missing ]'
STATUS_FLOAT_ON_INT_STATEMENT = 'value (float) cannot operate(%) with value (int)'
STATUS_ERROR_ON_STRING = 'Invalid operand on string assignment'
STATUS_ERROR_ON_FLOAT = 'Invalid operand on float'
STATUS_ERROR_ON_INT = 'Invalid operand on int'
STATUS_ERROR_ON_BOOL = 'Invalid operand on boolean'
STATUS_ERROR_ON_CHAR = 'Invalid operand/operator on char'
STATUS_INVALID_ASSIGNMENT = 'Invalid assignment '
STATUS_USED_BUT_NOT_INITIALIZED = 'Variable was used but not initialized'
STATUS_ZERO_DIVISION = 'Division by zero is not applicable.'
STATUS_STRUCTURE_ERROR = 'Declarations/statements cannot be after STOP statement'