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
49 typedef struct _expression_t {
50 expression_type_t type;
51 struct _expression_t *next;
67 } double_expression_t;
72 } string_expression_t;
76 expression_t *subexpr;
83 } binary_expression_t;
87 expression_t *obj_expr;
88 const WCHAR *identifier;
90 } member_expression_t;
104 typedef struct _statement_t {
105 statement_type_t type;
106 struct _statement_t *next;
111 member_expression_t *expr;
116 member_expression_t *member_expr;
117 expression_t *value_expr;
118 } assign_statement_t;
120 typedef struct _dim_decl_t {
122 struct _dim_decl_t *next;
125 typedef struct _dim_statement_t {
127 dim_decl_t *dim_decls;
130 typedef struct _arg_decl_t {
133 struct _arg_decl_t *next;
136 typedef struct _function_decl_t {
138 function_type_t type;
142 struct _function_decl_t *next;
143 struct _function_decl_t *next_prop_func;
148 function_decl_t *func_decl;
149 } function_statement_t;
151 typedef struct _class_prop_decl_t {
154 struct _class_prop_decl_t *next;
157 typedef struct _class_decl_t {
159 function_decl_t *funcs;
160 class_prop_decl_t *props;
161 struct _class_decl_t *next;
164 typedef struct _elseif_decl_t {
167 struct _elseif_decl_t *next;
173 statement_t *if_stat;
174 elseif_decl_t *elseifs;
175 statement_t *else_stat;
183 BOOL option_explicit;
191 statement_t *stats_tail;
192 class_decl_t *class_decls;
197 HRESULT parse_script(parser_ctx_t*,const WCHAR*) DECLSPEC_HIDDEN;
198 void parser_release(parser_ctx_t*) DECLSPEC_HIDDEN;
199 int parser_lex(void*,parser_ctx_t*) DECLSPEC_HIDDEN;
200 void *parser_alloc(parser_ctx_t*,size_t) DECLSPEC_HIDDEN;