xref: /freebsd/sbin/ipf/common/lexer.h (revision 0fca6ea1d4eea4c934cfff25ac9ee8ad6fe95583)
1 
2 /*
3  * Copyright (C) 2012 by Darren Reed.
4  *
5  * See the IPFILTER.LICENCE file for details on licencing.
6  */
7 
8 #ifdef	NO_YACC
9 #define	YY_COMMENT	1000
10 #define	YY_CMP_NE	1001
11 #define	YY_CMP_LE	1002
12 #define	YY_RANGE_OUT	1003
13 #define	YY_CMP_GE	1004
14 #define	YY_RANGE_IN	1005
15 #define	YY_HEX		1006
16 #define	YY_NUMBER	1007
17 #define	YY_IPV6		1008
18 #define	YY_STR		1009
19 #define	YY_IPADDR	1010
20 #endif
21 
22 #define	YYBUFSIZ	8192
23 
24 extern	wordtab_t	*yysettab(wordtab_t *);
25 extern	void		yysetdict(wordtab_t *);
26 extern	void		yysetfixeddict(wordtab_t *);
27 extern	int		yylex(void);
28 extern	void		yyerror(char *);
29 extern	char		*yykeytostr(int);
30 extern	void		yyresetdict(void);
31 
32 extern	FILE	*yyin;
33 extern	int	yylineNum;
34 extern	int	yyexpectaddr;
35 extern	int	yybreakondot;
36 extern	int	yyvarnext;
37 
38