3.4.1 Runtime errors



By default runtime errors that may occour during the execution on af AVIL program are reported with this format:

1 program line: 0
2 error code: 86


This gives you information on where in the code (and why) an AVIL program generated an error.
If you place this file (./errdesc ) at the root level of your sd card the error's description will be displayed instead of the code.

1 program line: 0
2 AVIL program doesn t exist


A description of each error's code is given in the table below.

Error number Description
1 program name is too long
2 error retrieving program arguments
3 program initialization error
4 variables declaration error
5 begin keyword missing
6 program initialization error
7 no meaningful token found
8 undefined statement
9 error adding int argument
10 error adding str argument
11 invalid program argument
12 variables declaration begin missing
13 variables declaration end missing
14 unexpected token (var type expected)
15 invalid boolean variable declaration (var name too long?)
16 invalid boolean variable initialization
17 invalid boolean variable name
18 invalid boolean variable name
19 invalid num variable declaration (var name too long?)
20 invalid num variable name
21 invalid num variable initialization
22 error adding num variable
23 invalid label declaration (var name too long?)
24 invalid label name
25 error adding label variable
26 invalid string variable declartion (var name too long?)
27 invalid string variable name
28 invalid string variable initialization
29 error adding string variable
30 unexpected token (var name expected)
31 unexpected variable type (label expected)
32 unexpected token (no token expected)
33 goto label not found
34 unexpected token (":" expected)
35 goto destination not valid
36 invalid variable name
37 invalid print argument
38 invalid print argument
39 unexpected token (variable name expected)
40 invalid variable name
41 input string is too long
42 unexpected variable type (string expected)
43 unexpected token (variable name expected)
44 invalid variable name
45 input string is too long
46 unexpected variable type (integer expected)
47 invalid variable name
48 unexpected token ("=" expected)
49 boolean assignment failed
50 num assignement failed
51 string assignment failed
52 unexpected variable type
53 if condition's evaluation failed
54 max number of nested if reached
55 if doesn't match else/endif
56 endif not found
57 internal interpreter error
58 if doesn't match else/endif
59 if doesn't match else/endif
60 max number of nested for reached
61 invalid variable name
62 unexpected token ("=" expected)
63 invalid for index starting valu
64 unable to get for variable
65 unexpected token ("to" expected)
66 invalid for index end value
67 unexpected token ("step" expected)
68 invalid step value
69 for doesn't match endfor
70 for doesn't match endfor
71 internal interpreter error
72 invalid variable name
73 error reading program line
74 system initialization error
75 invalid program name
76 invalid program arguments
77 error while getting sub name
78 can't find the requested sub
79 no sub token detected
80 error while getting sub name
81 can't run a sub from a sub!
82 call failed
83 invalid call name
84 invalid call arguments declaration
85 call to a not existing function
86 AVIL program doesn't exist
87 unable to get for variable
88 unable to update for variable
89 error reading raw string from file (too long?)
90 error setting starting value of for loop index