1%{ 2/* $NetBSD: scan.l,v 1.26 2002/01/31 22:30:21 tv Exp $ */ 3 4/* 5 * Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved. 6 * Copyright (c) 1994, 1995 Jochen Pohl 7 * All Rights Reserved. 8 * --- 23 unchanged lines hidden (view full) --- 32 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 33 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 34 */ 35 36#include <sys/cdefs.h> 37#if defined(__RCSID) && !defined(lint) 38__RCSID("$NetBSD: scan.l,v 1.26 2002/01/31 22:30:21 tv Exp $"); 39#endif |
40__FBSDID("$FreeBSD: head/usr.bin/xlint/lint1/scan.l 250227 2013-05-03 23:51:32Z jkim $"); |
41 42#include <stdlib.h> 43#include <string.h> 44#include <limits.h> 45#include <float.h> 46#include <ctype.h> 47#include <errno.h> 48#include <err.h> 49#include <math.h> 50 51#include "lint1.h" 52#include "cgram.h" 53 54#define CHAR_MASK (~(~0 << CHAR_BIT)) |
55 56/* Current position (its also updated when an included file is parsed) */ 57pos_t curr_pos = { 1, "", 0 }; 58 59/* 60 * Current position in C source (not updated when an included file is 61 * parsed). 62 */ --- 17 unchanged lines hidden (view full) --- 80static void directive(void); 81static void comment(void); 82static void slashslashcomment(void); 83static int string(void); 84static int wcstrg(void); 85 86%} 87 |
88%option nounput 89 |
90L [_A-Za-z] 91D [0-9] 92NZD [1-9] 93OD [0-7] 94HD [0-9A-Fa-f] 95EX ([eE][+-]?[0-9]+) 96 97%% --- 1379 unchanged lines hidden --- |