From db61847ca0406b31b2137db477d6eaa0d0a27b7c Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Mon, 29 Mar 1999 17:32:00 +0000 Subject: Initial revision --- src/parser.h | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 src/parser.h (limited to 'src/parser.h') diff --git a/src/parser.h b/src/parser.h new file mode 100644 index 0000000..3fd3921 --- /dev/null +++ b/src/parser.h @@ -0,0 +1,43 @@ +/* $Id$ + * cflow + * Copyright (C) 1997 Gray + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + */ +/* tokens */ +#define WORD 257 +#define LBRACE0 258 +#define RBRACE0 259 +#define IDENTIFIER 260 +#define EXTERN 261 +#define STATIC 262 +#define TYPEDEF 263 +#define STRUCT 264 +#define MODIFIER 265 +#define OP 266 +#define UNION 267 +#define ENUM 268 +#define LBRACE '{' +#define RBRACE '}' +#define MEMBER_OF 269 +#define TYPE 270 + +typedef struct { + char *str; +} YYSTYPE; + +extern YYSTYPE yylval; +extern char *filename; +extern int line_num; -- cgit v1.2.1