1 #ifndef LEXER_H 2 #define LEXER_H 3 4 typedef struct wordtab { 5 char *w_word; 6 int w_value; 7 } wordtab_t; 8 9 #ifdef NO_YACC 10 #define YY_COMMENT 1000 11 #define YY_CMP_NE 1001 12 #define YY_CMP_LE 1002 13 #define YY_RANGE_OUT 1003 14 #define YY_CMP_GE 1004 15 #define YY_RANGE_IN 1005 16 #define YY_HEX 1006 17 #define YY_NUMBER 1007 18 #define YY_IPV6 1008 19 #define YY_STR 1009 20 #define YY_IPADDR 1010 21 #endif 22 23 #define YYBUFSIZ 8192 24 25 extern wordtab_t *yysettab __P((wordtab_t *)); 26 extern void yysetdict __P((wordtab_t *)); 27 extern int yylex __P((void)); 28 extern int yyerror __P((const char *)); 29 extern char *yykeytostr __P((int)); 30 extern void yyresetdict __P((void)); 31 32 extern FILE *yyin; 33 extern int yylineNum; 34 extern int yyexpectaddr; 35 extern int yybreakondot; 36 extern int yyvarnext; 37 38 #endif /* LEXER_H */ 39