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: head/usr.sbin/rrenumd/lexer.l 250227 2013-05-03 23:51:32Z jkim $ |
32 */ 33 34%{ |
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 --- |