xref: /netbsd/external/bsd/ipf/dist/tools/lexer.h (revision c50c2f6f)
1 /*	$NetBSD: lexer.h,v 1.1.1.2 2012/07/22 13:44:59 darrenr Exp $	*/
2 
3 /*
4  * Copyright (C) 2012 by Darren Reed.
5  *
6  * See the IPFILTER.LICENCE file for details on licencing.
7  */
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	void		yysetfixeddict __P((wordtab_t *));
28 extern	int		yylex __P((void));
29 extern	void		yyerror __P((char *));
30 extern	char		*yykeytostr __P((int));
31 extern	void		yyresetdict __P((void));
32 
33 extern	FILE	*yyin;
34 extern	int	yylineNum;
35 extern	int	yyexpectaddr;
36 extern	int	yybreakondot;
37 extern	int	yyvarnext;
38 
39