xref: /illumos-gate/usr/src/cmd/ipf/tools/lexer.h (revision 1a90c98d7539778aeb0a1d20f735b66aaba17fca)
1*1a90c98dSToomas Soome #ifndef LEXER_H
2*1a90c98dSToomas Soome #define	LEXER_H
37c478bd9Sstevel@tonic-gate 
47c478bd9Sstevel@tonic-gate typedef	struct	wordtab	{
57c478bd9Sstevel@tonic-gate 	char	*w_word;
67c478bd9Sstevel@tonic-gate 	int	w_value;
77c478bd9Sstevel@tonic-gate } wordtab_t;
87c478bd9Sstevel@tonic-gate 
97c478bd9Sstevel@tonic-gate #ifdef	NO_YACC
107c478bd9Sstevel@tonic-gate #define	YY_COMMENT	1000
117c478bd9Sstevel@tonic-gate #define	YY_CMP_NE	1001
127c478bd9Sstevel@tonic-gate #define	YY_CMP_LE	1002
137c478bd9Sstevel@tonic-gate #define	YY_RANGE_OUT	1003
147c478bd9Sstevel@tonic-gate #define	YY_CMP_GE	1004
157c478bd9Sstevel@tonic-gate #define	YY_RANGE_IN	1005
167c478bd9Sstevel@tonic-gate #define	YY_HEX		1006
177c478bd9Sstevel@tonic-gate #define	YY_NUMBER	1007
187c478bd9Sstevel@tonic-gate #define	YY_IPV6		1008
197c478bd9Sstevel@tonic-gate #define	YY_STR		1009
207c478bd9Sstevel@tonic-gate #define	YY_IPADDR	1010
217c478bd9Sstevel@tonic-gate #endif
227c478bd9Sstevel@tonic-gate 
237c478bd9Sstevel@tonic-gate #define	YYBUFSIZ	8192
247c478bd9Sstevel@tonic-gate 
257c478bd9Sstevel@tonic-gate extern	wordtab_t	*yysettab __P((wordtab_t *));
267c478bd9Sstevel@tonic-gate extern	void		yysetdict __P((wordtab_t *));
277c478bd9Sstevel@tonic-gate extern	int		yylex __P((void));
28*1a90c98dSToomas Soome extern	int		yyerror __P((const char *));
297c478bd9Sstevel@tonic-gate extern	char		*yykeytostr __P((int));
307c478bd9Sstevel@tonic-gate extern	void		yyresetdict __P((void));
317c478bd9Sstevel@tonic-gate 
327c478bd9Sstevel@tonic-gate extern	FILE	*yyin;
337c478bd9Sstevel@tonic-gate extern	int	yylineNum;
347c478bd9Sstevel@tonic-gate extern	int	yyexpectaddr;
357c478bd9Sstevel@tonic-gate extern	int	yybreakondot;
367c478bd9Sstevel@tonic-gate extern	int	yyvarnext;
377c478bd9Sstevel@tonic-gate 
38*1a90c98dSToomas Soome #endif /* LEXER_H */
39