4 -- All rights reserved. |
4 -- All rights reserved. |
5 -- Contact: Nokia Corporation (qt-info@nokia.com) |
5 -- Contact: Nokia Corporation (qt-info@nokia.com) |
6 -- |
6 -- |
7 -- 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. |
8 -- |
8 -- |
9 -- $QT_BEGIN_LICENSE:LGPL$ |
9 -- $QT_BEGIN_LICENSE:LGPL-ONLY$ |
10 -- No Commercial Usage |
|
11 -- This file contains pre-release code and may not be distributed. |
|
12 -- You may use this file in accordance with the terms and conditions |
|
13 -- contained in the Technology Preview License Agreement accompanying |
|
14 -- this package. |
|
15 -- |
|
16 -- GNU Lesser General Public License Usage |
10 -- GNU Lesser General Public License Usage |
17 -- 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 |
18 -- 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 |
19 -- Foundation and appearing in the file LICENSE.LGPL included in the |
13 -- Foundation and appearing in the file LICENSE.LGPL included in the |
20 -- packaging of this file. Please review the following information to |
14 -- packaging of this file. Please review the following information to |
21 -- ensure the GNU Lesser General Public License version 2.1 requirements |
15 -- ensure the GNU Lesser General Public License version 2.1 requirements |
22 -- 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. |
23 -- |
17 -- |
24 -- In addition, as a special exception, Nokia gives you certain additional |
|
25 -- rights. These rights are described in the Nokia Qt LGPL Exception |
|
26 -- version 1.1, included in the file LGPL_EXCEPTION.txt in this package. |
|
27 -- |
|
28 -- 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 |
29 -- Nokia at qt-info@nokia.com. |
19 -- Nokia at qt-info@nokia.com. |
30 -- |
|
31 -- |
|
32 -- |
|
33 -- |
|
34 -- |
|
35 -- |
|
36 -- |
|
37 -- |
|
38 -- $QT_END_LICENSE$ |
20 -- $QT_END_LICENSE$ |
39 -- |
21 -- |
40 ---------------------------------------------------------------------------- |
22 ---------------------------------------------------------------------------- |
41 |
23 |
42 %parser QScriptGrammar |
24 %parser QScriptGrammar |
76 %token T_DEBUGGER "debugger" |
58 %token T_DEBUGGER "debugger" |
77 %token T_RESERVED_WORD "reserved word" |
59 %token T_RESERVED_WORD "reserved word" |
78 |
60 |
79 %start Program |
61 %start Program |
80 |
62 |
81 /. |
63 /./**************************************************************************** |
82 /**************************************************************************** |
|
83 ** |
64 ** |
84 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). |
65 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). |
85 ** All rights reserved. |
66 ** All rights reserved. |
86 ** Contact: Nokia Corporation (qt-info@nokia.com) |
67 ** Contact: Nokia Corporation (qt-info@nokia.com) |
87 ** |
68 ** |
88 ** This file is part of the QtScript module of the Qt Toolkit. |
69 ** This file is part of the QtScript module of the Qt Toolkit. |
89 ** |
70 ** |
|
71 ** $QT_BEGIN_LICENSE:LGPL$ |
|
72 ** No Commercial Usage |
|
73 ** This file contains pre-release code and may not be distributed. |
|
74 ** You may use this file in accordance with the terms and conditions |
90 ** contained in the Technology Preview License Agreement accompanying |
75 ** contained in the Technology Preview License Agreement accompanying |
91 ** this package. |
76 ** this package. |
92 ** In addition, as a special exception, Nokia gives you certain |
77 ** |
93 ** additional rights. These rights are described in the Nokia Qt LGPL |
78 ** GNU Lesser General Public License Usage |
94 ** Exception version 1.1, included in the file LGPL_EXCEPTION.txt in this |
79 ** Alternatively, this file may be used under the terms of the GNU Lesser |
95 ** package. |
80 ** General Public License version 2.1 as published by the Free Software |
|
81 ** Foundation and appearing in the file LICENSE.LGPL included in the |
|
82 ** packaging of this file. Please review the following information to |
|
83 ** ensure the GNU Lesser General Public License version 2.1 requirements |
|
84 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. |
|
85 ** |
|
86 ** In addition, as a special exception, Nokia gives you certain additional |
|
87 ** rights. These rights are described in the Nokia Qt LGPL Exception |
|
88 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. |
96 ** |
89 ** |
97 ** If you have questions regarding the use of this file, please contact |
90 ** If you have questions regarding the use of this file, please contact |
98 ** Nokia at qt-info@nokia.com. |
91 ** Nokia at qt-info@nokia.com. |
99 ** |
92 ** |
100 ** |
93 ** |
106 ** |
99 ** |
107 ** $QT_END_LICENSE$ |
100 ** $QT_END_LICENSE$ |
108 ** |
101 ** |
109 ****************************************************************************/ |
102 ****************************************************************************/ |
110 |
103 |
|
104 // This file was generated by qlalr - DO NOT EDIT! |
|
105 |
|
106 |
111 #include <QtCore/QtDebug> |
107 #include <QtCore/QtDebug> |
112 |
108 |
113 #include <string.h> |
109 #include <string.h> |
114 |
|
115 #include "qscriptengine.h" |
|
116 #include "qscriptengine_p.h" |
|
117 #include "qscriptvalueimpl_p.h" |
|
118 #include "qscriptcontext_p.h" |
|
119 #include "qscriptmember_p.h" |
|
120 #include "qscriptobject_p.h" |
|
121 #include "qscriptlexer_p.h" |
|
122 #include "qscriptast_p.h" |
|
123 #include "qscriptnodepool_p.h" |
|
124 |
110 |
125 #define Q_SCRIPT_UPDATE_POSITION(node, startloc, endloc) do { \ |
111 #define Q_SCRIPT_UPDATE_POSITION(node, startloc, endloc) do { \ |
126 node->startLine = startloc.startLine; \ |
112 node->startLine = startloc.startLine; \ |
127 node->startColumn = startloc.startColumn; \ |
113 node->startColumn = startloc.startColumn; \ |
128 node->endLine = endloc.endLine; \ |
114 node->endLine = endloc.endLine; \ |
129 node->endColumn = endloc.endColumn; \ |
115 node->endColumn = endloc.endColumn; \ |
130 } while (0) |
116 } while (0) |
131 |
117 |
132 ./ |
118 ./ |
133 |
119 |
134 /: |
120 /:/**************************************************************************** |
135 /**************************************************************************** |
|
136 ** |
121 ** |
137 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). |
122 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). |
138 ** All rights reserved. |
123 ** All rights reserved. |
139 ** Contact: Nokia Corporation (qt-info@nokia.com) |
124 ** Contact: Nokia Corporation (qt-info@nokia.com) |
140 ** |
125 ** |
141 ** This file is part of the QtScript module of the Qt Toolkit. |
126 ** This file is part of the QtScript module of the Qt Toolkit. |
142 ** |
127 ** |
|
128 ** $QT_BEGIN_LICENSE:LGPL$ |
|
129 ** No Commercial Usage |
|
130 ** This file contains pre-release code and may not be distributed. |
|
131 ** You may use this file in accordance with the terms and conditions |
143 ** contained in the Technology Preview License Agreement accompanying |
132 ** contained in the Technology Preview License Agreement accompanying |
144 ** this package. |
133 ** this package. |
145 ** additional rights. These rights are described in the Nokia Qt LGPL |
134 ** |
146 ** Exception version 1.1, included in the file LGPL_EXCEPTION.txt in this |
135 ** GNU Lesser General Public License Usage |
|
136 ** Alternatively, this file may be used under the terms of the GNU Lesser |
|
137 ** General Public License version 2.1 as published by the Free Software |
|
138 ** Foundation and appearing in the file LICENSE.LGPL included in the |
|
139 ** packaging of this file. Please review the following information to |
|
140 ** ensure the GNU Lesser General Public License version 2.1 requirements |
|
141 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. |
|
142 ** |
|
143 ** In addition, as a special exception, Nokia gives you certain additional |
|
144 ** rights. These rights are described in the Nokia Qt LGPL Exception |
|
145 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. |
|
146 ** |
147 ** If you have questions regarding the use of this file, please contact |
147 ** If you have questions regarding the use of this file, please contact |
148 ** Nokia at qt-info@nokia.com. |
148 ** Nokia at qt-info@nokia.com. |
149 ** |
149 ** |
150 ** |
150 ** |
151 ** |
151 ** |
152 ** |
152 ** |
153 ** |
153 ** |
154 ** |
154 ** |
155 ** |
155 ** |
|
156 ** |
156 ** $QT_END_LICENSE$ |
157 ** $QT_END_LICENSE$ |
157 ** |
158 ** |
158 ****************************************************************************/ |
159 ****************************************************************************/ |
|
160 |
|
161 // This file was generated by qlalr - DO NOT EDIT! |
|
162 |
159 |
163 |
160 // |
164 // |
161 // W A R N I N G |
165 // W A R N I N G |
162 // ------------- |
166 // ------------- |
163 // |
167 // |