-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathErrors.txt
More file actions
44 lines (37 loc) · 1.63 KB
/
Errors.txt
File metadata and controls
44 lines (37 loc) · 1.63 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
''' This file is for Error handling '''
# 1000 Functions
Error 1001: Function already declared! Function: NAME
Error 1002: Function not declared! Name: NAME
# 2000 Variables
Error 2001: Variable already declared! VAR: NAME Type: TYPE
Error 2002: Variable not declared! VAR: NAME
# 3000 Functions
Error 3001: Missing arguments in function call for function: NAME Expected arguments: ARGS Got: ARGS
Error 3002: Too many arguments in function call for function: NAME Expected arguments: ARGS Got: ARGS
Error 3003: Expected type in function call
Error 3004: Reached end of non-void function without return value. Function: FUNCTION
Error 3005: Returning value in void function. Function: FUNCTION
# 4000 Operations
Error 4001: Type missmatch TYPE and TYPE for operator: OPERATOR
Error 4002: Type missmatch. Non bool variables in condition
#5000 Memory
Error 5001: Error getting Value
Error 5002: Error setting Value
Error 5003: Incorrect type of Value. Expected: i(integer), d(double), s(string) or b(boolean). Got TYPE
Error 5004: Memory limit reached: Local Variables
Error 5005: Memory limit reached: Global Variables
Error 5006: Memory limit reached: Temporal Variables
Error 5007: Memory limit reached: constants
#6000 VirtualMachine
Error 6001: Quadruple not valid
Error 6002: Quadruple is Incomplete
Error 6003: Division by zero
Error 6004: Invalid Input Type
Error 6005: Can't read to bool variable
Error 6006: Module by zero
#7000 Arrays
Error 7001: Index expected to be integer. Got: TYPE
Error 7002: Index out of range
Error 7003: Variable is not array
Error 7004: Expected index for array variable
Error 7005: Array size must be a positive integer