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