grammar.h

00001 /* A Bison parser, made by GNU Bison 2.1.  */
00002 
00003 /* Skeleton parser for Yacc-like parsing with Bison,
00004    Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005 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 /* Tokens.  */
00094 #define NULLTOKEN 258
00095 #define TRUETOKEN 259
00096 #define FALSETOKEN 260
00097 #define STRING 261
00098 #define NUMBER 262
00099 #define BREAK 263
00100 #define CASE 264
00101 #define DEFAULT 265
00102 #define FOR 266
00103 #define NEW 267
00104 #define VAR 268
00105 #define CONST 269
00106 #define CONTINUE 270
00107 #define FUNCTION 271
00108 #define RETURN 272
00109 #define VOID 273
00110 #define DELETE 274
00111 #define IF 275
00112 #define THIS 276
00113 #define DO 277
00114 #define WHILE 278
00115 #define ELSE 279
00116 #define IN 280
00117 #define INSTANCEOF 281
00118 #define TYPEOF 282
00119 #define SWITCH 283
00120 #define WITH 284
00121 #define RESERVED 285
00122 #define THROW 286
00123 #define TRY 287
00124 #define CATCH 288
00125 #define FINALLY 289
00126 #define EQEQ 290
00127 #define NE 291
00128 #define STREQ 292
00129 #define STRNEQ 293
00130 #define LE 294
00131 #define GE 295
00132 #define OR 296
00133 #define AND 297
00134 #define PLUSPLUS 298
00135 #define MINUSMINUS 299
00136 #define LSHIFT 300
00137 #define RSHIFT 301
00138 #define URSHIFT 302
00139 #define PLUSEQUAL 303
00140 #define MINUSEQUAL 304
00141 #define MULTEQUAL 305
00142 #define DIVEQUAL 306
00143 #define LSHIFTEQUAL 307
00144 #define RSHIFTEQUAL 308
00145 #define URSHIFTEQUAL 309
00146 #define ANDEQUAL 310
00147 #define MODEQUAL 311
00148 #define XOREQUAL 312
00149 #define OREQUAL 313
00150 #define IDENT 314
00151 #define AUTOPLUSPLUS 315
00152 #define AUTOMINUSMINUS 316
00153 
00154 
00155 
00156 
00157 #if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
00158 #line 52 "grammar.y"
00159 typedef union YYSTYPE {
00160   int                 ival;
00161   double              dval;
00162   UString             *ustr;
00163   Identifier          *ident;
00164   Node                *node;
00165   StatementNode       *stat;
00166   ParameterNode       *param;
00167   FunctionBodyNode    *body;
00168   FuncDeclNode        *func;
00169   FunctionBodyNode    *prog;
00170   AssignExprNode      *init;
00171   SourceElementsNode  *srcs;
00172   StatListNode        *slist;
00173   ArgumentsNode       *args;
00174   ArgumentListNode    *alist;
00175   VarDeclNode         *decl;
00176   VarDeclListNode     *vlist;
00177   CaseBlockNode       *cblk;
00178   ClauseListNode      *clist;
00179   CaseClauseNode      *ccl;
00180   ElementNode         *elm;
00181   Operator            op;
00182   PropertyValueNode   *plist;
00183   PropertyNode        *pnode;
00184   CatchNode           *cnode;
00185   FinallyNode         *fnode;
00186 } YYSTYPE;
00187 /* Line 1447 of yacc.c.  */
00188 #line 189 "grammar.tab.h"
00189 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
00190 # define YYSTYPE_IS_DECLARED 1
00191 # define YYSTYPE_IS_TRIVIAL 1
00192 #endif
00193 
00194 extern YYSTYPE kjsyylval;
00195 
00196 #if ! defined (YYLTYPE) && ! defined (YYLTYPE_IS_DECLARED)
00197 typedef struct YYLTYPE
00198 {
00199   int first_line;
00200   int first_column;
00201   int last_line;
00202   int last_column;
00203 } YYLTYPE;
00204 # define yyltype YYLTYPE /* obsolescent; will be withdrawn */
00205 # define YYLTYPE_IS_DECLARED 1
00206 # define YYLTYPE_IS_TRIVIAL 1
00207 #endif
00208 
00209 extern YYLTYPE kjsyylloc;
00210 
00211 
KDE Home | KDE Accessibility Home | Description of Access Keys