|
1 | | -// IO |
2 | | - |
3 | | -#define IO_INPUT_TE "input: prompt must be a String" |
4 | | - |
5 | | -#define IO_WRITE_ARITY "writeFile needs 2 to 3 arguments: filename, [mode], content" |
6 | | -#define IO_WRITE_TE0 "writeFile: filename must be a String" |
7 | | -#define IO_WRITE_TE1 "writeFile: mode must be a String" |
8 | | -#define IO_WRITE_VE_1 "writeFile: mode must be equal to \"a\" or \"w\"" |
9 | | - |
10 | | -#define IO_READ_ARITY "readFile needs 1 argument: filename" |
11 | | -#define IO_READ_TE0 "readFile: filename must be a String" |
12 | | - |
13 | | -#define IO_EXISTS_ARITY "fileExists? needs 1 argument: filename" |
14 | | -#define IO_EXISTS_TE0 "fileExists?: filename must be a String" |
15 | | - |
16 | | -#define IO_LS_ARITY "listFiles needs 1 argument: filename" |
17 | | -#define IO_LS_TE0 "listFiles: filename must be a String" |
18 | | - |
19 | | -#define IO_ISDIR_ARITY "isDir? needs 1 argument: path" |
20 | | -#define IO_ISDIR_TE0 "isDir?: path must be a String" |
21 | | - |
22 | | -#define IO_MKD_ARITY "makeDir needs 1 argument: filename" |
23 | | -#define IO_MKD_TE0 "makeDir: filename must be a String" |
24 | | - |
25 | | -#define IO_RM_ARITY "removeFiles needs at least 1 argument: filename [...]" |
26 | | -#define IO_RM_TE0 "removeFiles: filename must be a String" |
27 | | - |
28 | 1 | // List |
29 | 2 |
|
30 | | -#define LIST_REVERSE_ARITY "list:reverse needs 1 argument: list" |
31 | | -#define LIST_REVERSE_TE0 "list:reverse: list must be a List" |
32 | | - |
33 | | -#define LIST_FIND_ARITY "list:find needs 2 arguments: list, value" |
34 | | -#define LIST_FIND_TE0 "list:find: list must be a List" |
35 | | - |
36 | 3 | // TO BE DEPRECATED |
37 | 4 | #define LIST_RMAT_ARITY "list:removeAt needs 2 arguments: list, index" |
38 | 5 | #define LIST_RMAT_TE0 "list:removeAt: list must be a List" |
39 | 6 | #define LIST_RMAT_TE1 "list:removeAt: index must be a Number" |
40 | 7 | #define LIST_RMAT_OOR "list:removeAt: index out of range" |
41 | 8 | // -- |
42 | | - |
43 | | -#define LIST_SLICE_ARITY "list:slice needs 4 arguments: list, start, end, step" |
44 | | -#define LIST_SLICE_TE0 "list:slice: list must be a List" |
45 | | -#define LIST_SLICE_TE1 "list:slice: start must be a Number" |
46 | | -#define LIST_SLICE_TE2 "list:slice: end must be a Number" |
47 | | -#define LIST_SLICE_TE3 "list:slice: step must be a Number" |
48 | | -#define LIST_SLICE_STEP "list:slice: step can not be null" |
49 | | -#define LIST_SLICE_ORDER "list:slice: start position must be less or equal to the end position" |
50 | | -#define LIST_SLICE_OOR "list:slice: indices out of range" |
51 | | - |
52 | | -#define LIST_SORT_ARITY "list:sort needs 1 argument: a list" |
53 | | -#define LIST_SORT_TE0 "list:sort: list must be a List" |
54 | | - |
55 | | -#define LIST_FILL_ARITY "list:fill needs 2 arguments: size, value" |
56 | | -#define LIST_FILL_TE0 "list:fill: size must be a Number" |
57 | | - |
58 | | -#define LIST_SETAT_ARITY "list:setAt needs 3 arguments: list, index, value" |
59 | | -#define LIST_SETAT_TE0 "list:setAt: list must be a List" |
60 | | -#define LIST_SETAT_TE1 "list:setAt: index must be a Number" |
61 | | - |
62 | | -// Mathematics |
63 | | - |
64 | | -#define MATH_ARITY(name) (name " needs 1 argument: value") |
65 | | -#define MATH_TE0(name) (name ": value must be a Number") |
66 | | - |
67 | | -// String |
68 | | - |
69 | | -#define STR_FORMAT_ARITY "str:format needs at least 1 argument: string, [values...]" |
70 | | -#define STR_FORMAT_TE0 "str:format: string must be a String" |
71 | | - |
72 | | -#define STR_FIND_ARITY "str:find needs 2 arguments: string, substr" |
73 | | -#define STR_FIND_TE0 "str:find: string must be a String" |
74 | | -#define STR_FIND_TE1 "str:find: substr must be a String" |
75 | | - |
76 | | -#define STR_RM_ARITY "str:removeAt needs 2 arguments: string, index" |
77 | | -#define STR_RM_TE0 "str:removeAt: string must be a String" |
78 | | -#define STR_RM_TE1 "str:removeAt: index must be a Number" |
79 | | -#define STR_RM_OOR "str:removeAt: index out of range" |
80 | | - |
81 | | -#define STR_ORD_ARITY "str:ord needs at least 1 argument: string" |
82 | | -#define STR_ORD_TE0 "str:ord: string must be a String" |
83 | | - |
84 | | -#define STR_CHR_ARITY "str:chr needs at least 1 argument: codepoint" |
85 | | -#define STR_CHR_TE0 "str:chr: codepoint must be a Number" |
86 | | - |
87 | | -// System |
88 | | - |
89 | | -#define SYS_SYS_ARITY "sys:exec needs 1 argument: command" |
90 | | -#define SYS_SYS_TE0 "sys:exec: command must be a String" |
91 | | - |
92 | | -#define SYS_SLEEP_ARITY "sleep needs 1 argument: duration (milliseconds)" |
93 | | -#define SYS_SLEEP_TE0 "sleep: duration must be a Number" |
94 | | - |
95 | | -#define SYS_EXIT_ARITY "sys:exit needs 1 argument: exit code" |
96 | | -#define SYS_EXIT_TE0 "sys:exit: exit code must be a Number" |
97 | | - |
98 | | -// Time |
0 commit comments