Merge branch 'cmd-casl' into casl2-cmd
[YACASL2.git] / test / unit / print_cmdtype_code / print_cmdtype_code.c
1 #include "casl2.h"
2 int main(){
3     puts("== CMDTYPE_CODE TABLE ==");
4     create_cmdtype_code();
5     print_cmdtype_code();
6     free_cmdtype_code();
7     if(cerrno != 0) {
8         printf("\terror - %d: %s\n", cerrno, cerrmsg);
9         freecerr();
10         exit(-1);
11     }
12     return 0;
13 }
14
15 /* エラー番号とエラーメッセージ */
16 CERRARRAY cerr[] = {
17     { 101, "label already defined" },
18     { 102, "label table is full" },
19     { 103, "label not found" },
20     { 104, "label length is too long" },
21     { 105, "no command in the line" },
22     { 106, "operand count mismatch" },
23     { 107, "no label in START" },
24     { 108, "not command of operand \"r\"" },
25     { 109, "not command of operand \"r1,r2\"" },
26     { 110, "not command of operand \"r,adr[,x]\"" },
27     { 111, "not command of operand \"adr[,x]\"" },
28     { 112, "not command of no operand" },
29     { 113, "command not defined" },
30     { 114, "not integer" },
31     { 115, "not hex" },
32     { 116, "out of hex range" },
33     { 117, "operand is too many" },
34     { 118, "operand length is too long" },
35     { 119, "out of COMET II memory" },
36     { 120, "GR0 in operand x" },
37     { 121, "cannot get operand token" },
38     { 122, "cannot create hash table" },
39     { 123, "illegal string" },
40     { 124, "more than one character in literal" },
41     { 201, "execute - out of COMET II memory" },
42     { 202, "SVC input - out of Input memory" },
43     { 203, "SVC output - out of COMET II memory" },
44     { 204, "Program Register (PR) - out of COMET II memory" },
45     { 205, "Stack Pointer (SP) - cannot allocate stack buffer" },
46     { 206, "Address - out of COMET II memory" },
47     { 207, "Stack Pointer (SP) - out of COMET II memory" },
48     { 0, NULL },
49 };