zconf.y 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693
  1. %{
  2. /*
  3. * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org>
  4. * Released under the terms of the GNU GPL v2.0.
  5. */
  6. #include <ctype.h>
  7. #include <stdarg.h>
  8. #include <stdio.h>
  9. #include <stdlib.h>
  10. #include <string.h>
  11. #include <stdbool.h>
  12. #define printd(mask, fmt...) if (cdebug & (mask)) printf(fmt)
  13. #define PRINTD 0x0001
  14. #define DEBUG_PARSE 0x0002
  15. int cdebug = PRINTD;
  16. extern int zconflex(void);
  17. static void zconfprint(const char *err, ...);
  18. static void zconferror(const char *err);
  19. static bool zconf_endtoken(int token, int starttoken, int endtoken);
  20. struct symbol *symbol_hash[257];
  21. #define YYERROR_VERBOSE
  22. %}
  23. %expect 40
  24. %union
  25. {
  26. int token;
  27. char *string;
  28. struct symbol *symbol;
  29. struct expr *expr;
  30. struct menu *menu;
  31. }
  32. %token T_MAINMENU
  33. %token T_MENU
  34. %token T_ENDMENU
  35. %token T_SOURCE
  36. %token T_CHOICE
  37. %token T_ENDCHOICE
  38. %token T_COMMENT
  39. %token T_CONFIG
  40. %token T_MENUCONFIG
  41. %token T_HELP
  42. %token <string> T_HELPTEXT
  43. %token T_IF
  44. %token T_ENDIF
  45. %token T_DEPENDS
  46. %token T_REQUIRES
  47. %token T_OPTIONAL
  48. %token T_PROMPT
  49. %token T_DEFAULT
  50. %token T_TRISTATE
  51. %token T_DEF_TRISTATE
  52. %token T_BOOLEAN
  53. %token T_DEF_BOOLEAN
  54. %token T_STRING
  55. %token T_INT
  56. %token T_HEX
  57. %token <string> T_WORD
  58. %token <string> T_WORD_QUOTE
  59. %token T_UNEQUAL
  60. %token T_EOF
  61. %token T_EOL
  62. %token T_CLOSE_PAREN
  63. %token T_OPEN_PAREN
  64. %token T_ON
  65. %token T_SELECT
  66. %token T_RANGE
  67. %left T_OR
  68. %left T_AND
  69. %left T_EQUAL T_UNEQUAL
  70. %nonassoc T_NOT
  71. %type <string> prompt
  72. %type <string> source
  73. %type <symbol> symbol
  74. %type <expr> expr
  75. %type <expr> if_expr
  76. %type <token> end
  77. %{
  78. #define LKC_DIRECT_LINK
  79. #include "lkc.h"
  80. %}
  81. %%
  82. input: /* empty */
  83. | input block
  84. ;
  85. block: common_block
  86. | choice_stmt
  87. | menu_stmt
  88. | T_MAINMENU prompt nl_or_eof
  89. | T_ENDMENU { zconfprint("unexpected 'endmenu' statement"); }
  90. | T_ENDIF { zconfprint("unexpected 'endif' statement"); }
  91. | T_ENDCHOICE { zconfprint("unexpected 'endchoice' statement"); }
  92. | error nl_or_eof { zconfprint("syntax error"); yyerrok; }
  93. ;
  94. common_block:
  95. if_stmt
  96. | comment_stmt
  97. | config_stmt
  98. | menuconfig_stmt
  99. | source_stmt
  100. | nl_or_eof
  101. ;
  102. /* config/menuconfig entry */
  103. config_entry_start: T_CONFIG T_WORD T_EOL
  104. {
  105. struct symbol *sym = sym_lookup($2, 0);
  106. sym->flags |= SYMBOL_OPTIONAL;
  107. menu_add_entry(sym);
  108. printd(DEBUG_PARSE, "%s:%d:config %s\n", zconf_curname(), zconf_lineno(), $2);
  109. };
  110. config_stmt: config_entry_start config_option_list
  111. {
  112. menu_end_entry();
  113. printd(DEBUG_PARSE, "%s:%d:endconfig\n", zconf_curname(), zconf_lineno());
  114. };
  115. menuconfig_entry_start: T_MENUCONFIG T_WORD T_EOL
  116. {
  117. struct symbol *sym = sym_lookup($2, 0);
  118. sym->flags |= SYMBOL_OPTIONAL;
  119. menu_add_entry(sym);
  120. printd(DEBUG_PARSE, "%s:%d:menuconfig %s\n", zconf_curname(), zconf_lineno(), $2);
  121. };
  122. menuconfig_stmt: menuconfig_entry_start config_option_list
  123. {
  124. if (current_entry->prompt)
  125. current_entry->prompt->type = P_MENU;
  126. else
  127. zconfprint("warning: menuconfig statement without prompt");
  128. menu_end_entry();
  129. printd(DEBUG_PARSE, "%s:%d:endconfig\n", zconf_curname(), zconf_lineno());
  130. };
  131. config_option_list:
  132. /* empty */
  133. | config_option_list config_option
  134. | config_option_list depends
  135. | config_option_list help
  136. | config_option_list T_EOL
  137. ;
  138. config_option: T_TRISTATE prompt_stmt_opt T_EOL
  139. {
  140. menu_set_type(S_TRISTATE);
  141. printd(DEBUG_PARSE, "%s:%d:tristate\n", zconf_curname(), zconf_lineno());
  142. };
  143. config_option: T_DEF_TRISTATE expr if_expr T_EOL
  144. {
  145. menu_add_expr(P_DEFAULT, $2, $3);
  146. menu_set_type(S_TRISTATE);
  147. printd(DEBUG_PARSE, "%s:%d:def_boolean\n", zconf_curname(), zconf_lineno());
  148. };
  149. config_option: T_BOOLEAN prompt_stmt_opt T_EOL
  150. {
  151. menu_set_type(S_BOOLEAN);
  152. printd(DEBUG_PARSE, "%s:%d:boolean\n", zconf_curname(), zconf_lineno());
  153. };
  154. config_option: T_DEF_BOOLEAN expr if_expr T_EOL
  155. {
  156. menu_add_expr(P_DEFAULT, $2, $3);
  157. menu_set_type(S_BOOLEAN);
  158. printd(DEBUG_PARSE, "%s:%d:def_boolean\n", zconf_curname(), zconf_lineno());
  159. };
  160. config_option: T_INT prompt_stmt_opt T_EOL
  161. {
  162. menu_set_type(S_INT);
  163. printd(DEBUG_PARSE, "%s:%d:int\n", zconf_curname(), zconf_lineno());
  164. };
  165. config_option: T_HEX prompt_stmt_opt T_EOL
  166. {
  167. menu_set_type(S_HEX);
  168. printd(DEBUG_PARSE, "%s:%d:hex\n", zconf_curname(), zconf_lineno());
  169. };
  170. config_option: T_STRING prompt_stmt_opt T_EOL
  171. {
  172. menu_set_type(S_STRING);
  173. printd(DEBUG_PARSE, "%s:%d:string\n", zconf_curname(), zconf_lineno());
  174. };
  175. config_option: T_PROMPT prompt if_expr T_EOL
  176. {
  177. menu_add_prompt(P_PROMPT, $2, $3);
  178. printd(DEBUG_PARSE, "%s:%d:prompt\n", zconf_curname(), zconf_lineno());
  179. };
  180. config_option: T_DEFAULT expr if_expr T_EOL
  181. {
  182. menu_add_expr(P_DEFAULT, $2, $3);
  183. printd(DEBUG_PARSE, "%s:%d:default\n", zconf_curname(), zconf_lineno());
  184. };
  185. config_option: T_SELECT T_WORD if_expr T_EOL
  186. {
  187. menu_add_symbol(P_SELECT, sym_lookup($2, 0), $3);
  188. printd(DEBUG_PARSE, "%s:%d:select\n", zconf_curname(), zconf_lineno());
  189. };
  190. config_option: T_SELECT T_NOT T_WORD if_expr T_EOL
  191. {
  192. menu_add_symbol(P_SELECTNOT, sym_lookup($3, 0), $4);
  193. printd(DEBUG_PARSE, "%s:%d:selectnot\n", zconf_curname(), zconf_lineno());
  194. };
  195. config_option: T_RANGE symbol symbol if_expr T_EOL
  196. {
  197. menu_add_expr(P_RANGE, expr_alloc_comp(E_RANGE,$2, $3), $4);
  198. printd(DEBUG_PARSE, "%s:%d:range\n", zconf_curname(), zconf_lineno());
  199. };
  200. /* choice entry */
  201. choice: T_CHOICE T_EOL
  202. {
  203. struct symbol *sym = sym_lookup(NULL, 0);
  204. sym->flags |= SYMBOL_CHOICE;
  205. menu_add_entry(sym);
  206. menu_add_expr(P_CHOICE, NULL, NULL);
  207. printd(DEBUG_PARSE, "%s:%d:choice\n", zconf_curname(), zconf_lineno());
  208. };
  209. choice_entry: choice choice_option_list
  210. {
  211. menu_end_entry();
  212. menu_add_menu();
  213. };
  214. choice_end: end
  215. {
  216. if (zconf_endtoken($1, T_CHOICE, T_ENDCHOICE)) {
  217. menu_end_menu();
  218. printd(DEBUG_PARSE, "%s:%d:endchoice\n", zconf_curname(), zconf_lineno());
  219. }
  220. };
  221. choice_stmt:
  222. choice_entry choice_block choice_end
  223. | choice_entry choice_block
  224. {
  225. printf("%s:%d: missing 'endchoice' for this 'choice' statement\n", current_menu->file->name, current_menu->lineno);
  226. zconfnerrs++;
  227. };
  228. choice_option_list:
  229. /* empty */
  230. | choice_option_list choice_option
  231. | choice_option_list depends
  232. | choice_option_list help
  233. | choice_option_list T_EOL
  234. ;
  235. choice_option: T_PROMPT prompt if_expr T_EOL
  236. {
  237. menu_add_prompt(P_PROMPT, $2, $3);
  238. printd(DEBUG_PARSE, "%s:%d:prompt\n", zconf_curname(), zconf_lineno());
  239. };
  240. choice_option: T_TRISTATE prompt_stmt_opt T_EOL
  241. {
  242. menu_set_type(S_TRISTATE);
  243. printd(DEBUG_PARSE, "%s:%d:tristate\n", zconf_curname(), zconf_lineno());
  244. };
  245. choice_option: T_BOOLEAN prompt_stmt_opt T_EOL
  246. {
  247. menu_set_type(S_BOOLEAN);
  248. printd(DEBUG_PARSE, "%s:%d:boolean\n", zconf_curname(), zconf_lineno());
  249. };
  250. choice_option: T_OPTIONAL T_EOL
  251. {
  252. current_entry->sym->flags |= SYMBOL_OPTIONAL;
  253. printd(DEBUG_PARSE, "%s:%d:optional\n", zconf_curname(), zconf_lineno());
  254. };
  255. choice_option: T_DEFAULT T_WORD if_expr T_EOL
  256. {
  257. menu_add_symbol(P_DEFAULT, sym_lookup($2, 0), $3);
  258. printd(DEBUG_PARSE, "%s:%d:default\n", zconf_curname(), zconf_lineno());
  259. };
  260. choice_block:
  261. /* empty */
  262. | choice_block common_block
  263. ;
  264. /* if entry */
  265. if: T_IF expr T_EOL
  266. {
  267. printd(DEBUG_PARSE, "%s:%d:if\n", zconf_curname(), zconf_lineno());
  268. menu_add_entry(NULL);
  269. menu_add_dep($2);
  270. menu_end_entry();
  271. menu_add_menu();
  272. };
  273. if_end: end
  274. {
  275. if (zconf_endtoken($1, T_IF, T_ENDIF)) {
  276. menu_end_menu();
  277. printd(DEBUG_PARSE, "%s:%d:endif\n", zconf_curname(), zconf_lineno());
  278. }
  279. };
  280. if_stmt:
  281. if if_block if_end
  282. | if if_block
  283. {
  284. printf("%s:%d: missing 'endif' for this 'if' statement\n", current_menu->file->name, current_menu->lineno);
  285. zconfnerrs++;
  286. };
  287. if_block:
  288. /* empty */
  289. | if_block common_block
  290. | if_block menu_stmt
  291. | if_block choice_stmt
  292. ;
  293. /* menu entry */
  294. menu: T_MENU prompt T_EOL
  295. {
  296. menu_add_entry(NULL);
  297. menu_add_prop(P_MENU, $2, NULL, NULL);
  298. printd(DEBUG_PARSE, "%s:%d:menu\n", zconf_curname(), zconf_lineno());
  299. };
  300. menu_entry: menu depends_list
  301. {
  302. menu_end_entry();
  303. menu_add_menu();
  304. };
  305. menu_end: end
  306. {
  307. if (zconf_endtoken($1, T_MENU, T_ENDMENU)) {
  308. menu_end_menu();
  309. printd(DEBUG_PARSE, "%s:%d:endmenu\n", zconf_curname(), zconf_lineno());
  310. }
  311. };
  312. menu_stmt:
  313. menu_entry menu_block menu_end
  314. | menu_entry menu_block
  315. {
  316. printf("%s:%d: missing 'endmenu' for this 'menu' statement\n", current_menu->file->name, current_menu->lineno);
  317. zconfnerrs++;
  318. };
  319. menu_block:
  320. /* empty */
  321. | menu_block common_block
  322. | menu_block menu_stmt
  323. | menu_block choice_stmt
  324. | menu_block error T_EOL { zconfprint("invalid menu option"); yyerrok; }
  325. ;
  326. source: T_SOURCE prompt T_EOL
  327. {
  328. $$ = $2;
  329. printd(DEBUG_PARSE, "%s:%d:source %s\n", zconf_curname(), zconf_lineno(), $2);
  330. };
  331. source_stmt: source
  332. {
  333. zconf_nextfile($1);
  334. };
  335. /* comment entry */
  336. comment: T_COMMENT prompt T_EOL
  337. {
  338. menu_add_entry(NULL);
  339. menu_add_prop(P_COMMENT, $2, NULL, NULL);
  340. printd(DEBUG_PARSE, "%s:%d:comment\n", zconf_curname(), zconf_lineno());
  341. };
  342. comment_stmt: comment depends_list
  343. {
  344. menu_end_entry();
  345. };
  346. /* help option */
  347. help_start: T_HELP T_EOL
  348. {
  349. printd(DEBUG_PARSE, "%s:%d:help\n", zconf_curname(), zconf_lineno());
  350. zconf_starthelp();
  351. };
  352. help: help_start T_HELPTEXT
  353. {
  354. current_entry->sym->help = $2;
  355. };
  356. /* depends option */
  357. depends_list: /* empty */
  358. | depends_list depends
  359. | depends_list T_EOL
  360. ;
  361. depends: T_DEPENDS T_ON expr T_EOL
  362. {
  363. menu_add_dep($3);
  364. printd(DEBUG_PARSE, "%s:%d:depends on\n", zconf_curname(), zconf_lineno());
  365. }
  366. | T_DEPENDS expr T_EOL
  367. {
  368. menu_add_dep($2);
  369. printd(DEBUG_PARSE, "%s:%d:depends\n", zconf_curname(), zconf_lineno());
  370. }
  371. | T_REQUIRES expr T_EOL
  372. {
  373. menu_add_dep($2);
  374. printd(DEBUG_PARSE, "%s:%d:requires\n", zconf_curname(), zconf_lineno());
  375. };
  376. /* prompt statement */
  377. prompt_stmt_opt:
  378. /* empty */
  379. | prompt if_expr
  380. {
  381. menu_add_prop(P_PROMPT, $1, NULL, $2);
  382. };
  383. prompt: T_WORD
  384. | T_WORD_QUOTE
  385. ;
  386. end: T_ENDMENU nl_or_eof { $$ = T_ENDMENU; }
  387. | T_ENDCHOICE nl_or_eof { $$ = T_ENDCHOICE; }
  388. | T_ENDIF nl_or_eof { $$ = T_ENDIF; }
  389. ;
  390. nl_or_eof:
  391. T_EOL | T_EOF;
  392. if_expr: /* empty */ { $$ = NULL; }
  393. | T_IF expr { $$ = $2; }
  394. ;
  395. expr: symbol { $$ = expr_alloc_symbol($1); }
  396. | symbol T_EQUAL symbol { $$ = expr_alloc_comp(E_EQUAL, $1, $3); }
  397. | symbol T_UNEQUAL symbol { $$ = expr_alloc_comp(E_UNEQUAL, $1, $3); }
  398. | T_OPEN_PAREN expr T_CLOSE_PAREN { $$ = $2; }
  399. | T_NOT expr { $$ = expr_alloc_one(E_NOT, $2); }
  400. | expr T_OR expr { $$ = expr_alloc_two(E_OR, $1, $3); }
  401. | expr T_AND expr { $$ = expr_alloc_two(E_AND, $1, $3); }
  402. ;
  403. symbol: T_WORD { $$ = sym_lookup($1, 0); free($1); }
  404. | T_WORD_QUOTE { $$ = sym_lookup($1, 1); free($1); }
  405. ;
  406. %%
  407. void conf_parse(const char *name)
  408. {
  409. struct symbol *sym;
  410. int i;
  411. zconf_initscan(name);
  412. sym_init();
  413. menu_init();
  414. modules_sym = sym_lookup("MODULES", 0);
  415. rootmenu.prompt = menu_add_prop(P_MENU, "OpenADK Configuration", NULL, NULL);
  416. //zconfdebug = 1;
  417. zconfparse();
  418. if (zconfnerrs)
  419. exit(1);
  420. menu_finalize(&rootmenu);
  421. for_all_symbols(i, sym) {
  422. if (!(sym->flags & SYMBOL_CHECKED) && sym_check_deps(sym))
  423. printf("\n");
  424. else
  425. sym->flags |= SYMBOL_CHECK_DONE;
  426. }
  427. sym_change_count = 1;
  428. }
  429. const char *zconf_tokenname(int token)
  430. {
  431. switch (token) {
  432. case T_MENU: return "menu";
  433. case T_ENDMENU: return "endmenu";
  434. case T_CHOICE: return "choice";
  435. case T_ENDCHOICE: return "endchoice";
  436. case T_IF: return "if";
  437. case T_ENDIF: return "endif";
  438. }
  439. return "<token>";
  440. }
  441. static bool zconf_endtoken(int token, int starttoken, int endtoken)
  442. {
  443. if (token != endtoken) {
  444. zconfprint("unexpected '%s' within %s block", zconf_tokenname(token), zconf_tokenname(starttoken));
  445. zconfnerrs++;
  446. return false;
  447. }
  448. if (current_menu->file != current_file) {
  449. zconfprint("'%s' in different file than '%s'", zconf_tokenname(token), zconf_tokenname(starttoken));
  450. zconfprint("location of the '%s'", zconf_tokenname(starttoken));
  451. zconfnerrs++;
  452. return false;
  453. }
  454. return true;
  455. }
  456. static void zconfprint(const char *err, ...)
  457. {
  458. va_list ap;
  459. fprintf(stderr, "%s:%d: ", zconf_curname(), zconf_lineno() + 1);
  460. va_start(ap, err);
  461. vfprintf(stderr, err, ap);
  462. va_end(ap);
  463. fprintf(stderr, "\n");
  464. }
  465. static void zconferror(const char *err)
  466. {
  467. fprintf(stderr, "%s:%d: %s\n", zconf_curname(), zconf_lineno() + 1, err);
  468. }
  469. void print_quoted_string(FILE *out, const char *str)
  470. {
  471. const char *p;
  472. int len;
  473. putc('"', out);
  474. while ((p = strchr(str, '"'))) {
  475. len = p - str;
  476. if (len)
  477. fprintf(out, "%.*s", len, str);
  478. fputs("\\\"", out);
  479. str = p + 1;
  480. }
  481. fputs(str, out);
  482. putc('"', out);
  483. }
  484. void print_symbol(FILE *out, struct menu *menu)
  485. {
  486. struct symbol *sym = menu->sym;
  487. struct property *prop;
  488. if (sym_is_choice(sym))
  489. fprintf(out, "choice\n");
  490. else
  491. fprintf(out, "config %s\n", sym->name);
  492. switch (sym->type) {
  493. case S_BOOLEAN:
  494. fputs(" boolean\n", out);
  495. break;
  496. case S_TRISTATE:
  497. fputs(" tristate\n", out);
  498. break;
  499. case S_STRING:
  500. fputs(" string\n", out);
  501. break;
  502. case S_INT:
  503. fputs(" integer\n", out);
  504. break;
  505. case S_HEX:
  506. fputs(" hex\n", out);
  507. break;
  508. default:
  509. fputs(" ???\n", out);
  510. break;
  511. }
  512. for (prop = sym->prop; prop; prop = prop->next) {
  513. if (prop->menu != menu)
  514. continue;
  515. switch (prop->type) {
  516. case P_PROMPT:
  517. fputs(" prompt ", out);
  518. print_quoted_string(out, prop->text);
  519. if (!expr_is_yes(prop->visible.expr)) {
  520. fputs(" if ", out);
  521. expr_fprint(prop->visible.expr, out);
  522. }
  523. fputc('\n', out);
  524. break;
  525. case P_DEFAULT:
  526. fputs( " default ", out);
  527. expr_fprint(prop->expr, out);
  528. if (!expr_is_yes(prop->visible.expr)) {
  529. fputs(" if ", out);
  530. expr_fprint(prop->visible.expr, out);
  531. }
  532. fputc('\n', out);
  533. break;
  534. case P_CHOICE:
  535. fputs(" #choice value\n", out);
  536. break;
  537. default:
  538. fprintf(out, " unknown prop %d!\n", prop->type);
  539. break;
  540. }
  541. }
  542. if (sym->help) {
  543. int len = strlen(sym->help);
  544. while (sym->help[--len] == '\n')
  545. sym->help[len] = 0;
  546. fprintf(out, " help\n%s\n", sym->help);
  547. }
  548. fputc('\n', out);
  549. }
  550. void zconfdump(FILE *out)
  551. {
  552. struct property *prop;
  553. struct symbol *sym;
  554. struct menu *menu;
  555. menu = rootmenu.list;
  556. while (menu) {
  557. if ((sym = menu->sym))
  558. print_symbol(out, menu);
  559. else if ((prop = menu->prompt)) {
  560. switch (prop->type) {
  561. case P_COMMENT:
  562. fputs("\ncomment ", out);
  563. print_quoted_string(out, prop->text);
  564. fputs("\n", out);
  565. break;
  566. case P_MENU:
  567. fputs("\nmenu ", out);
  568. print_quoted_string(out, prop->text);
  569. fputs("\n", out);
  570. break;
  571. default:
  572. ;
  573. }
  574. if (!expr_is_yes(prop->visible.expr)) {
  575. fputs(" depends ", out);
  576. expr_fprint(prop->visible.expr, out);
  577. fputc('\n', out);
  578. }
  579. fputs("\n", out);
  580. }
  581. if (menu->list)
  582. menu = menu->list;
  583. else if (menu->next)
  584. menu = menu->next;
  585. else while ((menu = menu->parent)) {
  586. if (menu->prompt && menu->prompt->type == P_MENU)
  587. fputs("\nendmenu\n", out);
  588. if (menu->next) {
  589. menu = menu->next;
  590. break;
  591. }
  592. }
  593. }
  594. }
  595. #include "lex.zconf.c"
  596. #include "confdata.c"
  597. #include "expr.c"
  598. #include "symbol.c"
  599. #include "menu.c"