genparse (0.5.2-11.2) src/parser.h

Summary

 src/parser.h |  130 +++++++++++++++++++++++++++++++++++++++++++++--------------
 1 file changed, 101 insertions(+), 29 deletions(-)

    
download this patch

Patch contents

--- genparse-0.5.2.orig/src/parser.h
+++ genparse-0.5.2/src/parser.h
@@ -1,36 +1,108 @@
-typedef union 
-{
+/* A Bison parser, made by GNU Bison 1.875a.  */
+
+/* Skeleton parser for Yacc-like parsing with Bison,
+   Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
+
+   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, 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., 59 Temple Place - Suite 330,
+   Boston, MA 02111-1307, USA.  */
+
+/* As a special exception, when this file is copied by Bison into a
+   Bison output file, you may use that output file without restriction.
+   This special exception was added by the Free Software Foundation
+   in version 1.24 of Bison.  */
+
+/* Tokens.  */
+#ifndef YYTOKENTYPE
+# define YYTOKENTYPE
+   /* Put the tokens into the symbol table, so that GDB and other debuggers
+      know about them.  */
+   enum yytokentype {
+     SLASH = 258,
+     BEGIN_RANGE = 259,
+     END_RANGE = 260,
+     RANGE_SPEC1 = 261,
+     RANGE_SPEC2 = 262,
+     FUNC_SPEC = 263,
+     NONE = 264,
+     OPEN_BRACE = 265,
+     CLOSE_BRACE = 266,
+     POUND = 267,
+     INCLUDE = 268,
+     LT = 269,
+     GT = 270,
+     MANDATORY = 271,
+     DOUBLEQUOTE = 272,
+     INVOCATION = 273,
+     QUOTED = 274,
+     C_VAR = 275,
+     ALNUM = 276,
+     FILENAME = 277,
+     FIRST_CHAR = 278,
+     FLAG = 279,
+     INT = 280,
+     FLOAT = 281,
+     CHAR = 282,
+     STRING = 283
+   };
+#endif
+#define SLASH 258
+#define BEGIN_RANGE 259
+#define END_RANGE 260
+#define RANGE_SPEC1 261
+#define RANGE_SPEC2 262
+#define FUNC_SPEC 263
+#define NONE 264
+#define OPEN_BRACE 265
+#define CLOSE_BRACE 266
+#define POUND 267
+#define INCLUDE 268
+#define LT 269
+#define GT 270
+#define MANDATORY 271
+#define DOUBLEQUOTE 272
+#define INVOCATION 273
+#define QUOTED 274
+#define C_VAR 275
+#define ALNUM 276
+#define FILENAME 277
+#define FIRST_CHAR 278
+#define FLAG 279
+#define INT 280
+#define FLOAT 281
+#define CHAR 282
+#define STRING 283
+
+
+
+
+#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
+#line 38 "parser.yy"
+typedef union YYSTYPE {
   char 	  c;     /* single character */
   char    *str;  /* string */
   int     i;
   param_t p;
 } YYSTYPE;
-#define	SLASH	257
-#define	BEGIN_RANGE	258
-#define	END_RANGE	259
-#define	RANGE_SPEC1	260
-#define	RANGE_SPEC2	261
-#define	FUNC_SPEC	262
-#define	NONE	263
-#define	OPEN_BRACE	264
-#define	CLOSE_BRACE	265
-#define	POUND	266
-#define	INCLUDE	267
-#define	LT	268
-#define	GT	269
-#define	MANDATORY	270
-#define	DOUBLEQUOTE	271
-#define	INVOCATION	272
-#define	QUOTED	273
-#define	C_VAR	274
-#define	ALNUM	275
-#define	FILENAME	276
-#define	FIRST_CHAR	277
-#define	FLAG	278
-#define	INT	279
-#define	FLOAT	280
-#define	CHAR	281
-#define	STRING	282
-
+/* Line 1240 of yacc.c.  */
+#line 100 "y.tab.h"
+# define yystype YYSTYPE /* obsolescent; will be withdrawn */
+# define YYSTYPE_IS_DECLARED 1
+# define YYSTYPE_IS_TRIVIAL 1
+#endif
 
 extern YYSTYPE yylval;
+
+
+