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
48 typedef struct _expression_t {
49 expression_type_t type;
50 struct _expression_t *next;
66 } double_expression_t;
71 } string_expression_t;
75 expression_t *subexpr;
82 } binary_expression_t;
86 expression_t *obj_expr;
87 const WCHAR *identifier;
89 } member_expression_t;
102 typedef struct _statement_t {
103 statement_type_t type;
104 struct _statement_t *next;
109 member_expression_t *expr;
114 member_expression_t *member_expr;
115 expression_t *value_expr;
116 } assign_statement_t;
118 typedef struct _dim_decl_t {
120 struct _dim_decl_t *next;
123 typedef struct _dim_statement_t {
125 dim_decl_t *dim_decls;
128 typedef struct _arg_decl_t {
131 struct _arg_decl_t *next;
134 typedef struct _function_decl_t {
136 function_type_t type;
139 struct _function_decl_t *next;
142 typedef struct _function_statement_t {
144 function_decl_t *func_decl;
145 } function_statement_t;
147 typedef struct _class_decl_t {
149 struct _class_decl_t *next;
152 typedef struct _elseif_decl_t {
155 struct _elseif_decl_t *next;
161 statement_t *if_stat;
162 elseif_decl_t *elseifs;
163 statement_t *else_stat;
171 BOOL option_explicit;
179 statement_t *stats_tail;
180 class_decl_t *class_decls;
185 HRESULT parse_script(parser_ctx_t*,const WCHAR*) DECLSPEC_HIDDEN;
186 void parser_release(parser_ctx_t*) DECLSPEC_HIDDEN;
187 int parser_lex(void*,parser_ctx_t*) DECLSPEC_HIDDEN;
188 void *parser_alloc(parser_ctx_t*,size_t) DECLSPEC_HIDDEN;