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
42 typedef struct _expression_t {
43 expression_type_t type;
44 struct _expression_t *next;
60 } double_expression_t;
65 } string_expression_t;
69 expression_t *subexpr;
76 } binary_expression_t;
80 expression_t *obj_expr;
81 const WCHAR *identifier;
83 } member_expression_t;
95 typedef struct _statement_t {
96 statement_type_t type;
97 struct _statement_t *next;
102 member_expression_t *expr;
107 member_expression_t *member_expr;
108 expression_t *value_expr;
109 } assign_statement_t;
111 typedef struct _dim_decl_t {
113 struct _dim_decl_t *next;
116 typedef struct _dim_statement_t {
118 dim_decl_t *dim_decls;
121 typedef struct _arg_decl_t {
124 struct _arg_decl_t *next;
127 typedef struct _function_decl_t {
129 function_type_t type;
132 struct _function_decl_t *next;
135 typedef struct _function_statement_t {
137 function_decl_t *func_decl;
138 } function_statement_t;
140 typedef struct _elseif_decl_t {
143 struct _elseif_decl_t *next;
149 statement_t *if_stat;
150 elseif_decl_t *elseifs;
151 statement_t *else_stat;
159 BOOL option_explicit;
167 statement_t *stats_tail;
172 HRESULT parse_script(parser_ctx_t*,const WCHAR*) DECLSPEC_HIDDEN;
173 void parser_release(parser_ctx_t*) DECLSPEC_HIDDEN;
174 int parser_lex(void*,parser_ctx_t*) DECLSPEC_HIDDEN;
175 void *parser_alloc(parser_ctx_t*,size_t) DECLSPEC_HIDDEN;