lexer.l (225736) | lexer.l (252181) |
---|---|
1/* $KAME: lexer.l,v 1.7 2000/11/08 02:40:53 itojun Exp $ */ 2 3/* 4 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 14 unchanged lines hidden (view full) --- 23 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29 * SUCH DAMAGE. 30 * | 1/* $KAME: lexer.l,v 1.7 2000/11/08 02:40:53 itojun Exp $ */ 2 3/* 4 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 14 unchanged lines hidden (view full) --- 23 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29 * SUCH DAMAGE. 30 * |
31 * $FreeBSD: stable/9/usr.sbin/rrenumd/lexer.l 173412 2007-11-07 10:53:41Z kevlo $ | 31 * $FreeBSD: stable/9/usr.sbin/rrenumd/lexer.l 252181 2013-06-24 21:33:19Z marius $ |
32 */ 33 34%{ | 32 */ 33 34%{ |
35#define YY_NO_UNPUT 36 | |
37#include <sys/param.h> 38#include <sys/ioctl.h> 39#include <sys/socket.h> 40#include <sys/queue.h> 41 42#include <string.h> 43 44#include <net/if.h> --- 14 unchanged lines hidden (view full) --- 59#define LINEBUF_SIZE 1000 60char linebuf[LINEBUF_SIZE]; 61 62int parse(FILE **); 63void yyerror(const char *); 64int yylex(void); 65%} 66 | 35#include <sys/param.h> 36#include <sys/ioctl.h> 37#include <sys/socket.h> 38#include <sys/queue.h> 39 40#include <string.h> 41 42#include <net/if.h> --- 14 unchanged lines hidden (view full) --- 57#define LINEBUF_SIZE 1000 58char linebuf[LINEBUF_SIZE]; 59 60int parse(FILE **); 61void yyerror(const char *); 62int yylex(void); 63%} 64 |
65%option nounput 66 |
|
67/* common section */ 68nl \n 69ws [ \t]+ 70digit [0-9] 71letter [0-9A-Za-z] 72hexdigit [0-9A-Fa-f] 73special [()+\|\?\*,] 74dot \. --- 199 unchanged lines hidden --- | 67/* common section */ 68nl \n 69ws [ \t]+ 70digit [0-9] 71letter [0-9A-Za-z] 72hexdigit [0-9A-Fa-f] 73special [()+\|\?\*,] 74dot \. --- 199 unchanged lines hidden --- |