lexer.h revision 369245
1/*	$FreeBSD: stable/11/contrib/ipfilter/tools/lexer.h 369245 2021-02-09 13:47:46Z git2svn $	*/
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
25extern	wordtab_t	*yysettab(wordtab_t *);
26extern	void		yysetdict(wordtab_t *);
27extern	void		yysetfixeddict(wordtab_t *);
28extern	int		yylex(void);
29extern	void		yyerror(char *);
30extern	char		*yykeytostr(int);
31extern	void		yyresetdict(void);
32
33extern	FILE	*yyin;
34extern	int	yylineNum;
35extern	int	yyexpectaddr;
36extern	int	yybreakondot;
37extern	int	yyvarnext;
38
39