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