2 * Copyright 2011 Jacek Caban for CodeWeavers
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
53 typedef struct _expression_t {
54 expression_type_t type;
55 struct _expression_t *next;
71 } double_expression_t;
76 } string_expression_t;
80 expression_t *subexpr;
87 } binary_expression_t;
91 expression_t *obj_expr;
92 const WCHAR *identifier;
94 } member_expression_t;
115 typedef struct _statement_t {
116 statement_type_t type;
117 struct _statement_t *next;
122 member_expression_t *expr;
127 member_expression_t *member_expr;
128 expression_t *value_expr;
129 } assign_statement_t;
131 typedef struct _dim_decl_t {
133 struct _dim_decl_t *next;
136 typedef struct _dim_statement_t {
138 dim_decl_t *dim_decls;
141 typedef struct _arg_decl_t {
144 struct _arg_decl_t *next;
147 typedef struct _function_decl_t {
149 function_type_t type;
153 struct _function_decl_t *next;
154 struct _function_decl_t *next_prop_func;
159 function_decl_t *func_decl;
160 } function_statement_t;
162 typedef struct _class_prop_decl_t {
165 struct _class_prop_decl_t *next;
168 typedef struct _class_decl_t {
170 function_decl_t *funcs;
171 class_prop_decl_t *props;
172 struct _class_decl_t *next;
175 typedef struct _elseif_decl_t {
178 struct _elseif_decl_t *next;
184 statement_t *if_stat;
185 elseif_decl_t *elseifs;
186 statement_t *else_stat;
200 BOOL option_explicit;
208 statement_t *stats_tail;
209 class_decl_t *class_decls;
214 HRESULT parse_script(parser_ctx_t*,const WCHAR*) DECLSPEC_HIDDEN;
215 void parser_release(parser_ctx_t*) DECLSPEC_HIDDEN;
216 int parser_lex(void*,parser_ctx_t*) DECLSPEC_HIDDEN;
217 void *parser_alloc(parser_ctx_t*,size_t) DECLSPEC_HIDDEN;