src/script/parser/qscriptgrammar.cpp
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
     1 // This file was generated by qlalr - DO NOT EDIT!
       
     2 /****************************************************************************
     1 /****************************************************************************
     3 **
     2 **
     4 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     5 ** All rights reserved.
     4 ** All rights reserved.
     6 ** Contact: Nokia Corporation (qt-info@nokia.com)
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     7 **
     6 **
     8 ** This file is part of the QtScript module of the Qt Toolkit.
     7 ** This file is part of the QtScript module of the Qt Toolkit.
     9 **
     8 **
    10 ** $QT_BEGIN_LICENSE:LGPL$
     9 ** $QT_BEGIN_LICENSE:LGPL-ONLY$
    11 ** No Commercial Usage
       
    12 ** This file contains pre-release code and may not be distributed.
       
    13 ** You may use this file in accordance with the terms and conditions
       
    14 ** contained in the Technology Preview License Agreement accompanying
       
    15 ** this package.
       
    16 **
       
    17 ** GNU Lesser General Public License Usage
    10 ** GNU Lesser General Public License Usage
    18 ** Alternatively, this file may be used under the terms of the GNU Lesser
    11 ** This file may be used under the terms of the GNU Lesser
    19 ** General Public License version 2.1 as published by the Free Software
    12 ** General Public License version 2.1 as published by the Free Software
    20 ** Foundation and appearing in the file LICENSE.LGPL included in the
    13 ** Foundation and appearing in the file LICENSE.LGPL included in the
    21 ** packaging of this file.  Please review the following information to
    14 ** packaging of this file.  Please review the following information to
    22 ** ensure the GNU Lesser General Public License version 2.1 requirements
    15 ** ensure the GNU Lesser General Public License version 2.1 requirements
    23 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    16 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    24 **
    17 **
    25 ** In addition, as a special exception, Nokia gives you certain additional
       
    26 ** rights.  These rights are described in the Nokia Qt LGPL Exception
       
    27 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
       
    28 **
       
    29 ** If you have questions regarding the use of this file, please contact
    18 ** If you have questions regarding the use of this file, please contact
    30 ** Nokia at qt-info@nokia.com.
    19 ** Nokia at qt-info@nokia.com.
    31 **
       
    32 **
       
    33 **
       
    34 **
       
    35 **
       
    36 **
       
    37 **
       
    38 **
       
    39 ** $QT_END_LICENSE$
    20 ** $QT_END_LICENSE$
    40 **
    21 **
    41 ****************************************************************************/
    22 ****************************************************************************/
    42 
    23 
       
    24 // This file was generated by qlalr - DO NOT EDIT!
    43 #include "qscriptgrammar_p.h"
    25 #include "qscriptgrammar_p.h"
    44 
    26 
    45 QT_BEGIN_NAMESPACE
    27 QT_BEGIN_NAMESPACE
    46 
    28 
    47 const char *const QScriptGrammar::spell [] = {
    29 const char *const QScriptGrammar::spell [] = {
    66   "CaseClause", "Catch", "Finally", "FunctionDeclaration", "FormalParameterListOpt", "FunctionBodyOpt", "IdentifierOpt", "FormalParameterList", "FunctionBody", "SourceElements", 
    48   "CaseClause", "Catch", "Finally", "FunctionDeclaration", "FormalParameterListOpt", "FunctionBodyOpt", "IdentifierOpt", "FormalParameterList", "FunctionBody", "SourceElements", 
    67   "SourceElement", "$accept"
    49   "SourceElement", "$accept"
    68 #endif // QLALR_NO_QSCRIPTGRAMMAR_DEBUG_INFO
    50 #endif // QLALR_NO_QSCRIPTGRAMMAR_DEBUG_INFO
    69 };
    51 };
    70 
    52 
    71 const int QScriptGrammar::lhs [] = {
    53 const short QScriptGrammar::lhs [] = {
    72   85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 
    54   85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 
    73   85, 85, 85, 85, 85, 87, 87, 92, 92, 86, 
    55   85, 85, 85, 85, 85, 87, 87, 92, 92, 86, 
    74   86, 89, 89, 93, 93, 93, 93, 94, 94, 94, 
    56   86, 89, 89, 93, 93, 93, 93, 94, 94, 94, 
    75   94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 
    57   94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 
    76   94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 
    58   94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 
    95   139, 141, 156, 156, 159, 159, 157, 157, 160, 158, 
    77   139, 141, 156, 156, 159, 159, 157, 157, 160, 158, 
    96   140, 142, 142, 143, 143, 143, 161, 162, 144, 144, 
    78   140, 142, 142, 143, 143, 143, 161, 162, 144, 144, 
    97   163, 97, 167, 167, 164, 164, 165, 165, 168, 84, 
    79   163, 97, 167, 167, 164, 164, 165, 165, 168, 84, 
    98   169, 169, 170, 170, 166, 166, 88, 88, 171};
    80   169, 169, 170, 170, 166, 166, 88, 88, 171};
    99 
    81 
   100 const int QScriptGrammar:: rhs[] = {
    82 const short QScriptGrammar::rhs [] = {
   101   1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 
    83   1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 
   102   3, 5, 3, 4, 3, 2, 4, 1, 2, 0, 
    84   3, 5, 3, 4, 3, 2, 4, 1, 2, 0, 
   103   1, 3, 5, 1, 1, 1, 1, 1, 1, 1, 
    85   1, 3, 5, 1, 1, 1, 1, 1, 1, 1, 
   104   1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 
    86   1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 
   105   1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 
    87   1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 
   427   729, 733, 737, 741, 745, 749, 754, 760, 763, 766, 
   409   729, 733, 737, 741, 745, 749, 754, 760, 763, 766, 
   428   769, 778, 787, 789, 793, 794, 796, 797, 799, 801, 
   410   769, 778, 787, 789, 793, 794, 796, 797, 799, 801, 
   429   803, 805, 808, 810, 812, 813, 815, 816, 818};
   411   803, 805, 808, 810, 812, 813, 815, 816, 818};
   430 #endif // QLALR_NO_QSCRIPTGRAMMAR_DEBUG_INFO
   412 #endif // QLALR_NO_QSCRIPTGRAMMAR_DEBUG_INFO
   431 
   413 
   432 const int QScriptGrammar::action_default [] = {
   414 const short QScriptGrammar::action_default [] = {
   433   0, 98, 165, 129, 137, 133, 173, 180, 77, 149, 
   415   0, 98, 165, 129, 137, 133, 173, 180, 77, 149, 
   434   179, 187, 175, 125, 0, 176, 264, 62, 177, 178, 
   416   179, 187, 175, 125, 0, 176, 264, 62, 177, 178, 
   435   183, 78, 141, 145, 66, 95, 76, 81, 61, 0, 
   417   183, 78, 141, 145, 66, 95, 76, 81, 61, 0, 
   436   115, 181, 102, 261, 260, 263, 184, 0, 195, 0, 
   418   115, 181, 102, 261, 260, 263, 184, 0, 195, 0, 
   437   0, 0, 8, 9, 0, 5, 0, 265, 2, 0, 
   419   0, 0, 8, 9, 0, 5, 0, 265, 2, 0, 
   476   0, 0, 216, 0, 0, 0, 231, 0, 21, 0, 
   458   0, 0, 216, 0, 0, 0, 231, 0, 21, 0, 
   477   18, 20, 11, 0, 17, 12, 19, 16, 10, 0, 
   459   18, 20, 11, 0, 17, 12, 19, 16, 10, 0, 
   478   15, 88, 86, 90, 87, 85, 89, 204, 197, 0, 
   460   15, 88, 86, 90, 87, 85, 89, 204, 197, 0, 
   479   205, 201, 0, 203, 193, 0, 194, 198};
   461   205, 201, 0, 203, 193, 0, 194, 198};
   480 
   462 
   481 const int QScriptGrammar::goto_default [] = {
   463 const short QScriptGrammar::goto_default [] = {
   482   29, 28, 439, 437, 113, 112, 14, 2, 438, 111, 
   464   29, 28, 439, 437, 113, 112, 14, 2, 438, 111, 
   483   114, 194, 24, 17, 190, 26, 8, 201, 21, 27, 
   465   114, 194, 24, 17, 190, 26, 8, 201, 21, 27, 
   484   77, 25, 1, 32, 30, 270, 13, 264, 3, 260, 
   466   77, 25, 1, 32, 30, 270, 13, 264, 3, 260, 
   485   5, 262, 4, 261, 22, 268, 23, 269, 9, 263, 
   467   5, 262, 4, 261, 22, 268, 23, 269, 9, 263, 
   486   259, 300, 389, 265, 266, 35, 6, 79, 12, 15, 
   468   259, 300, 389, 265, 266, 35, 6, 79, 12, 15, 
   487   18, 19, 10, 7, 31, 80, 20, 36, 75, 76, 
   469   18, 19, 10, 7, 31, 80, 20, 36, 75, 76, 
   488   11, 357, 356, 78, 459, 458, 322, 323, 461, 325, 
   470   11, 357, 356, 78, 459, 458, 322, 323, 461, 325, 
   489   460, 324, 395, 399, 402, 398, 397, 417, 418, 16, 
   471   460, 324, 395, 399, 402, 398, 397, 417, 418, 16, 
   490   100, 107, 96, 99, 106, 108, 33, 0};
   472   100, 107, 96, 99, 106, 108, 33, 0};
   491 
   473 
   492 const int QScriptGrammar::action_index [] = {
   474 const short QScriptGrammar::action_index [] = {
   493   1318, 79, -84, 56, 39, -17, -84, -84, 169, -84, 
   475   1318, 79, -84, 56, 39, -17, -84, -84, 169, -84, 
   494   -84, -84, -84, 216, 149, -84, -84, -84, -84, -84, 
   476   -84, -84, -84, 216, 149, -84, -84, -84, -84, -84, 
   495   -84, 475, 68, 100, 180, 184, -84, -84, -84, 99, 
   477   -84, 475, 68, 100, 180, 184, -84, -84, -84, 99, 
   496   303, -84, 193, -84, 1318, -84, -84, 160, -84, 194, 
   478   303, -84, 193, -84, 1318, -84, -84, 160, -84, 194, 
   497   85, 629, -84, -84, 1398, -84, -5, 32, 42, 26, 
   479   85, 629, -84, -84, 1398, -84, -5, 32, 42, 26, 
   584   -88, -38, -88, 2, -88, -39, -88, -88, -88, 3, 
   566   -88, -38, -88, 2, -88, -39, -88, -88, -88, 3, 
   585   -88, 9, -88, 7, -88, -88, -88, -88, -88, -88, 
   567   -88, 9, -88, 7, -88, -88, -88, -88, -88, -88, 
   586   -88, -88, -88, -88, -88, -88, -88, -88, -88, -88, 
   568   -88, -88, -88, -88, -88, -88, -88, -88, -88, -88, 
   587   -88, -88, 5, -88, -88, -56, -88, -88};
   569   -88, -88, 5, -88, -88, -56, -88, -88};
   588 
   570 
   589 const int QScriptGrammar::action_info [] = {
   571 const short QScriptGrammar::action_info [] = {
   590   305, 307, 109, 400, 400, 400, 273, 105, 416, 302, 
   572   305, 307, 109, 400, 400, 400, 273, 105, 416, 302, 
   591   297, 295, 293, 423, 273, 151, 313, 321, 406, 407, 
   573   297, 295, 293, 423, 273, 151, 313, 321, 406, 407, 
   592   424, 295, 422, 198, 420, 149, 313, 353, -47, 396, 
   574   424, 295, 422, 198, 420, 149, 313, 353, -47, 396, 
   593   154, 258, -49, 346, 416, -36, -25, -26, -195, 392, 
   575   154, 258, -49, 346, 416, -36, -25, -26, -195, 392, 
   594   385, -44, 258, 344, 349, 440, 321, 343, 319, 347, 
   576   385, -44, 258, 344, 349, 440, 321, 343, 319, 347, 
   775   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
   757   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
   776   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
   758   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
   777   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
   759   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
   778   0, 0, 0, 0, 0, 0, 0, 0};
   760   0, 0, 0, 0, 0, 0, 0, 0};
   779 
   761 
   780 const int QScriptGrammar::action_check [] = {
   762 const short QScriptGrammar::action_check [] = {
   781   61, 60, 55, 5, 5, 5, 1, 33, 33, 61, 
   763   61, 60, 55, 5, 5, 5, 1, 33, 33, 61, 
   782   8, 76, 48, 29, 1, 8, 2, 29, 55, 7, 
   764   8, 76, 48, 29, 1, 8, 2, 29, 55, 7, 
   783   60, 76, 36, 8, 20, 7, 2, 16, 7, 33, 
   765   60, 76, 36, 8, 20, 7, 2, 16, 7, 33, 
   784   7, 36, 7, 55, 33, 7, 7, 7, 29, 36, 
   766   7, 36, 7, 55, 33, 7, 7, 7, 29, 36, 
   785   55, 7, 36, 33, 36, 8, 29, 60, 7, 7, 
   767   55, 7, 36, 33, 36, 8, 29, 60, 7, 7,