Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
990 | barsuk | 1 | |
2 | |||
3 | |||
4 | #define ERR_BADFUNCTION -1 |
||
5 | #define ERR_BADNUMER -2 |
||
6 | #define ERR_GENERAL -3 |
||
7 | #define ERR_NOBRACKET -4 |
||
8 | #define ERR_BADVARIABLE -5 |
||
9 | #define ERR_OVERFLOW -6 |
||
10 | #define ERR_BADPARAM -7 |
||
11 | |||
12 | |||
13 | |||
14 | |||
15 | // puts the token back to line |
||
16 | void putback(double *hold); |
||
17 | // gets the expression. This function is used externally |
||
18 | int get_exp(double *hold); |
||
19 | |||
20 | |||
21 | void level1(double *hold); |
||
22 | |||
23 | |||
24 | void level1_5(double *hold); |
||
25 | |||
26 | |||
27 | void level2(double *hold); |
||
28 | // works with */% |
||
29 | void level3(double *hold); |
||
30 | // works with ^ |
||
31 | void level4(double *hold); |
||
32 | // works with () |
||
33 | void level5(double *hold); |
||
34 | // works with elementary tokens |
||
35 | void level6(double *hold); |
||
36 | // gets value of number, function or variable |
||
37 | void primitive(double *hold); |
||
38 | // performs arithmetical operation |
||
39 | void arith(char op, double *r, double *h); |
||
40 | |||
41 | |||
42 | |||
43 | |||
44 | |||
45 | void unary(char op, double *r); |
||
46 | // gets variable value by name |
||
47 | extern variable_callback *find_var; |
||
48 | |||
49 | |||
50 | |||
51 | |||
52 | void serror(int code); |
||
53 | // checks the function table to see if such a function exists |
||
54 | int look_up(char *s); |
||
55 | |||
56 | |||
57 | bool strncmp(char *s1, char *s2, int n); |
||
58 | |||
59 | |||
60 | |||
61 | |||
62 | |||
63 | int isdigit(char c); |
||
64 | int isalpha2(char c); |
||
65 | int iswhite(char c); |
||
66 |