]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - contrib/ipfilter/tools/lexer.h
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / contrib / ipfilter / tools / lexer.h
1 /*      $FreeBSD$       */
2
3 /*
4  * Copyright (C) 2002-2004 by Darren Reed.
5  *
6  * See the IPFILTER.LICENCE file for details on licencing.
7  */
8
9 typedef struct  wordtab {
10         char    *w_word;
11         int     w_value;
12 } wordtab_t;
13
14 #ifdef  NO_YACC
15 #define YY_COMMENT      1000
16 #define YY_CMP_NE       1001
17 #define YY_CMP_LE       1002
18 #define YY_RANGE_OUT    1003
19 #define YY_CMP_GE       1004
20 #define YY_RANGE_IN     1005
21 #define YY_HEX          1006
22 #define YY_NUMBER       1007
23 #define YY_IPV6         1008
24 #define YY_STR          1009
25 #define YY_IPADDR       1010
26 #endif
27
28 #define YYBUFSIZ        8192
29
30 extern  wordtab_t       *yysettab __P((wordtab_t *));
31 extern  void            yysetdict __P((wordtab_t *));
32 extern  int             yylex __P((void));
33 extern  void            yyerror __P((char *));
34 extern  char            *yykeytostr __P((int));
35 extern  void            yyresetdict __P((void));
36
37 extern  FILE    *yyin;
38 extern  int     yylineNum;
39 extern  int     yyexpectaddr;
40 extern  int     yybreakondot;
41 extern  int     yyvarnext;
42