use tokenlist for lexer parser.
[build-config.git] / src / config / lxrgmr-code / reglxgmr.c
blobfb83cdda8af1b758b619f2ee799daa63463c820b
4 #include <stdio.h>
6 #include "token/getoken.c"
9 extern int load_token_def_cfg_file (char *token_def_file);
11 #ifdef LXRGMR_CODE
12 int main (int argc, char *argv[])
13 #else
14 int lxrgmr_main ()
15 #endif
17 int retval = 0;
19 lxrgmr_init();
21 printf("argc = %d\n", argc);
22 printf("argc[0] = %s\n", argv[0]);
23 printf("argc[1] = %s\n", argv[1]);
24 printf("argc[2] = %s\n", argv[2]);
25 if (argc > 1 && argv[1] && argv[1][0] != 0)
27 retval = load_token_def_cfg_file(argv[1]);
28 printf("retval = %d\n", retval);
30 else
31 load_token_def_cfg_file(NULL);
33 printf("xxxxxxxxxx\n");
34 return 0;
35 while (1)
37 retval = yylex_proc();
38 if (retval == 0) return retval;
39 //if (retval == -1) continue;
41 return 0;
42 // yylex();