X-Git-Url: http://git.draconx.ca/gitweb/gob-dx.git/blobdiff_plain/38fac18bf81df672821ebbac4130ce41f0a6c61f..8445442abc02fc325a9ce228759403113583818c:/src/parse.h diff --git a/src/parse.h b/src/parse.h index af83451..e07616e 100644 --- a/src/parse.h +++ b/src/parse.h @@ -1,60 +1,198 @@ -typedef union { +/* A Bison parser, made by GNU Bison 2.7. */ + +/* Bison interface for Yacc-like parsers in C + + Copyright (C) 1984, 1989-1990, 2000-2012 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 3 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, see . */ + +/* As a special exception, you may create a larger work that contains + part or all of the Bison parser skeleton and distribute that work + under terms of your choice, so long as that work isn't itself a + parser generator using the skeleton or a modified version thereof + as a parser skeleton. Alternatively, if you modify or redistribute + the parser skeleton itself, you may (at your option) remove this + special exception, which will cause the skeleton and the resulting + Bison output files to be licensed under the GNU General Public + License without this special exception. + + This special exception was added by the Free Software Foundation in + version 2.2 of Bison. */ + +#ifndef YY_YY_PARSE_H_INCLUDED +# define YY_YY_PARSE_H_INCLUDED +/* Enabling traces. */ +#ifndef YYDEBUG +# define YYDEBUG 1 +#endif +#if YYDEBUG +extern int yydebug; +#endif + +/* Tokens. */ +#ifndef YYTOKENTYPE +# define YYTOKENTYPE + /* Put the tokens into the symbol table, so that GDB and other debuggers + know about them. */ + enum yytokentype { + CLASS = 258, + FROM = 259, + CONST = 260, + VOID = 261, + STRUCT = 262, + UNION = 263, + ENUM = 264, + THREEDOTS = 265, + SIGNED = 266, + UNSIGNED = 267, + LONG = 268, + SHORT = 269, + INT = 270, + FLOAT = 271, + DOUBLE = 272, + CHAR = 273, + TOKEN = 274, + NUMBER = 275, + TYPETOKEN = 276, + ARRAY_DIM = 277, + SINGLE_CHAR = 278, + CCODE = 279, + CTCODE = 280, + ADCODE = 281, + HTCODE = 282, + PHCODE = 283, + HCODE = 284, + ACODE = 285, + ATCODE = 286, + STRING = 287, + PUBLIC = 288, + PRIVATE = 289, + PROTECTED = 290, + CLASSWIDE = 291, + PROPERTY = 292, + ARGUMENT = 293, + VIRTUAL = 294, + SIGNAL = 295, + OVERRIDE = 296, + NAME = 297, + NICK = 298, + BLURB = 299, + MAXIMUM = 300, + MINIMUM = 301, + DEFAULT_VALUE = 302, + ERROR = 303, + FLAGS = 304, + TYPE = 305, + FLAGS_TYPE = 306, + ENUM_TYPE = 307, + PARAM_TYPE = 308, + BOXED_TYPE = 309, + OBJECT_TYPE = 310 + }; +#endif +/* Tokens. */ +#define CLASS 258 +#define FROM 259 +#define CONST 260 +#define VOID 261 +#define STRUCT 262 +#define UNION 263 +#define ENUM 264 +#define THREEDOTS 265 +#define SIGNED 266 +#define UNSIGNED 267 +#define LONG 268 +#define SHORT 269 +#define INT 270 +#define FLOAT 271 +#define DOUBLE 272 +#define CHAR 273 +#define TOKEN 274 +#define NUMBER 275 +#define TYPETOKEN 276 +#define ARRAY_DIM 277 +#define SINGLE_CHAR 278 +#define CCODE 279 +#define CTCODE 280 +#define ADCODE 281 +#define HTCODE 282 +#define PHCODE 283 +#define HCODE 284 +#define ACODE 285 +#define ATCODE 286 +#define STRING 287 +#define PUBLIC 288 +#define PRIVATE 289 +#define PROTECTED 290 +#define CLASSWIDE 291 +#define PROPERTY 292 +#define ARGUMENT 293 +#define VIRTUAL 294 +#define SIGNAL 295 +#define OVERRIDE 296 +#define NAME 297 +#define NICK 298 +#define BLURB 299 +#define MAXIMUM 300 +#define MINIMUM 301 +#define DEFAULT_VALUE 302 +#define ERROR 303 +#define FLAGS 304 +#define TYPE 305 +#define FLAGS_TYPE 306 +#define ENUM_TYPE 307 +#define PARAM_TYPE 308 +#define BOXED_TYPE 309 +#define OBJECT_TYPE 310 + + + +#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED +typedef union YYSTYPE +{ +/* Line 2058 of yacc.c */ +#line 692 "parse.y" + char *id; GString *cbuf; GList *list; int line; int sigtype; -} YYSTYPE; -#define CLASS 257 -#define FROM 258 -#define CONST 259 -#define VOID 260 -#define STRUCT 261 -#define UNION 262 -#define ENUM 263 -#define THREEDOTS 264 -#define SIGNED 265 -#define UNSIGNED 266 -#define LONG 267 -#define SHORT 268 -#define INT 269 -#define FLOAT 270 -#define DOUBLE 271 -#define CHAR 272 -#define TOKEN 273 -#define NUMBER 274 -#define TYPETOKEN 275 -#define ARRAY_DIM 276 -#define SINGLE_CHAR 277 -#define CCODE 278 -#define HTCODE 279 -#define PHCODE 280 -#define HCODE 281 -#define ACODE 282 -#define ATCODE 283 -#define STRING 284 -#define PUBLIC 285 -#define PRIVATE 286 -#define PROTECTED 287 -#define CLASSWIDE 288 -#define PROPERTY 289 -#define ARGUMENT 290 -#define VIRTUAL 291 -#define SIGNAL 292 -#define OVERRIDE 293 -#define NICK 294 -#define BLURB 295 -#define MAXIMUM 296 -#define MINIMUM 297 -#define DEFAULT_VALUE 298 -#define ERROR 299 -#define FLAGS 300 -#define TYPE 301 -#define FLAGS_TYPE 302 -#define ENUM_TYPE 303 -#define PARAM_TYPE 304 -#define BOXED_TYPE 305 -#define OBJECT_TYPE 306 +/* Line 2058 of yacc.c */ +#line 176 "parse.h" +} YYSTYPE; +# define YYSTYPE_IS_TRIVIAL 1 +# define yystype YYSTYPE /* obsolescent; will be withdrawn */ +# define YYSTYPE_IS_DECLARED 1 +#endif + extern YYSTYPE yylval; + +#ifdef YYPARSE_PARAM +#if defined __STDC__ || defined __cplusplus +int yyparse (void *YYPARSE_PARAM); +#else +int yyparse (); +#endif +#else /* ! YYPARSE_PARAM */ +#if defined __STDC__ || defined __cplusplus +int yyparse (void); +#else +int yyparse (); +#endif +#endif /* ! YYPARSE_PARAM */ + +#endif /* !YY_YY_PARSE_H_INCLUDED */