grammar.h

00001 /* A Bison parser, made by GNU Bison 1.875.  */
00002 
00003 /* Skeleton parser for Yacc-like parsing with Bison,
00004    Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 Free Software Foundation, Inc.
00005 
00006    This program is free software; you can redistribute it and/or modify
00007    it under the terms of the GNU General Public License as published by
00008    the Free Software Foundation; either version 2, or (at your option)
00009    any later version.
00010 
00011    This program is distributed in the hope that it will be useful,
00012    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014    GNU General Public License for more details.
00015 
00016    You should have received a copy of the GNU General Public License
00017    along with this program; if not, write to the Free Software
00018    Foundation, Inc., 51 Franklin Street, Fifth Floor,
00019    Boston, MA 02110-1301, USA.  */
00020 
00021 /* As a special exception, when this file is copied by Bison into a
00022    Bison output file, you may use that output file without restriction.
00023    This special exception was added by the Free Software Foundation
00024    in version 1.24 of Bison.  */
00025 
00026 /* Tokens.  */
00027 #ifndef YYTOKENTYPE
00028 # define YYTOKENTYPE
00029    /* Put the tokens into the symbol table, so that GDB and other debuggers
00030       know about them.  */
00031    enum yytokentype {
00032      NULLTOKEN = 258,
00033      TRUETOKEN = 259,
00034      FALSETOKEN = 260,
00035      STRING = 261,
00036      NUMBER = 262,
00037      BREAK = 263,
00038      CASE = 264,
00039      DEFAULT = 265,
00040      FOR = 266,
00041      NEW = 267,
00042      VAR = 268,
00043      CONST = 269,
00044      CONTINUE = 270,
00045      FUNCTION = 271,
00046      RETURN = 272,
00047      VOID = 273,
00048      DELETE = 274,
00049      IF = 275,
00050      THIS = 276,
00051      DO = 277,
00052      WHILE = 278,
00053      ELSE = 279,
00054      IN = 280,
00055      INSTANCEOF = 281,
00056      TYPEOF = 282,
00057      SWITCH = 283,
00058      WITH = 284,
00059      RESERVED = 285,
00060      THROW = 286,
00061      TRY = 287,
00062      CATCH = 288,
00063      FINALLY = 289,
00064      EQEQ = 290,
00065      NE = 291,
00066      STREQ = 292,
00067      STRNEQ = 293,
00068      LE = 294,
00069      GE = 295,
00070      OR = 296,
00071      AND = 297,
00072      PLUSPLUS = 298,
00073      MINUSMINUS = 299,
00074      LSHIFT = 300,
00075      RSHIFT = 301,
00076      URSHIFT = 302,
00077      PLUSEQUAL = 303,
00078      MINUSEQUAL = 304,
00079      MULTEQUAL = 305,
00080      DIVEQUAL = 306,
00081      LSHIFTEQUAL = 307,
00082      RSHIFTEQUAL = 308,
00083      URSHIFTEQUAL = 309,
00084      ANDEQUAL = 310,
00085      MODEQUAL = 311,
00086      XOREQUAL = 312,
00087      OREQUAL = 313,
00088      IDENT = 314,
00089      AUTOPLUSPLUS = 315,
00090      AUTOMINUSMINUS = 316
00091    };
00092 #endif
00093 #define NULLTOKEN 258
00094 #define TRUETOKEN 259
00095 #define FALSETOKEN 260
00096 #define STRING 261
00097 #define NUMBER 262
00098 #define BREAK 263
00099 #define CASE 264
00100 #define DEFAULT 265
00101 #define FOR 266
00102 #define NEW 267
00103 #define VAR 268
00104 #define CONST 269
00105 #define CONTINUE 270
00106 #define FUNCTION 271
00107 #define RETURN 272
00108 #define VOID 273
00109 #define DELETE 274
00110 #define IF 275
00111 #define THIS 276
00112 #define DO 277
00113 #define WHILE 278
00114 #define ELSE 279
00115 #define IN 280
00116 #define INSTANCEOF 281
00117 #define TYPEOF 282
00118 #define SWITCH 283
00119 #define WITH 284
00120 #define RESERVED 285
00121 #define THROW 286
00122 #define TRY 287
00123 #define CATCH 288
00124 #define FINALLY 289
00125 #define EQEQ 290
00126 #define NE 291
00127 #define STREQ 292
00128 #define STRNEQ 293
00129 #define LE 294
00130 #define GE 295
00131 #define OR 296
00132 #define AND 297
00133 #define PLUSPLUS 298
00134 #define MINUSMINUS 299
00135 #define LSHIFT 300
00136 #define RSHIFT 301
00137 #define URSHIFT 302
00138 #define PLUSEQUAL 303
00139 #define MINUSEQUAL 304
00140 #define MULTEQUAL 305
00141 #define DIVEQUAL 306
00142 #define LSHIFTEQUAL 307
00143 #define RSHIFTEQUAL 308
00144 #define URSHIFTEQUAL 309
00145 #define ANDEQUAL 310
00146 #define MODEQUAL 311
00147 #define XOREQUAL 312
00148 #define OREQUAL 313
00149 #define IDENT 314
00150 #define AUTOPLUSPLUS 315
00151 #define AUTOMINUSMINUS 316
00152 
00153 
00154 
00155 
00156 #if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
00157 #line 50 "grammar.y"
00158 typedef union YYSTYPE {
00159   int                 ival;
00160   double              dval;
00161   UString             *ustr;
00162   Identifier          *ident;
00163   Node                *node;
00164   StatementNode       *stat;
00165   ParameterNode       *param;
00166   FunctionBodyNode    *body;
00167   FuncDeclNode        *func;
00168   FunctionBodyNode    *prog;
00169   AssignExprNode      *init;
00170   SourceElementsNode  *srcs;
00171   StatListNode        *slist;
00172   ArgumentsNode       *args;
00173   ArgumentListNode    *alist;
00174   VarDeclNode         *decl;
00175   VarDeclListNode     *vlist;
00176   CaseBlockNode       *cblk;
00177   ClauseListNode      *clist;
00178   CaseClauseNode      *ccl;
00179   ElementNode         *elm;
00180   Operator            op;
00181   PropertyValueNode   *plist;
00182   PropertyNode        *pnode;
00183   CatchNode           *cnode;
00184   FinallyNode         *fnode;
00185 } YYSTYPE;
00186 /* Line 1249 of yacc.c.  */
00187 #line 187 "grammar.tab.h"
00188 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
00189 # define YYSTYPE_IS_DECLARED 1
00190 # define YYSTYPE_IS_TRIVIAL 1
00191 #endif
00192 
00193 extern YYSTYPE kjsyylval;
00194 
00195 #if ! defined (YYLTYPE) && ! defined (YYLTYPE_IS_DECLARED)
00196 typedef struct YYLTYPE
00197 {
00198   int first_line;
00199   int first_column;
00200   int last_line;
00201   int last_column;
00202 } YYLTYPE;
00203 # define yyltype YYLTYPE /* obsolescent; will be withdrawn */
00204 # define YYLTYPE_IS_DECLARED 1
00205 # define YYLTYPE_IS_TRIVIAL 1
00206 #endif
00207 
00208 extern YYLTYPE kjsyylloc;
00209 
00210 
KDE Home | KDE Accessibility Home | Description of Access Keys