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