1 
2 /*
3 	+------------------------------------------------------------------------+
4 	| Phalcon Framework                                                      |
5 	+------------------------------------------------------------------------+
6 	| Copyright (c) 2011-present Phalcon Team (http://www.phalconphp.com)    |
7 	+------------------------------------------------------------------------+
8 	| This source file is subject to the New BSD License that is bundled     |
9 	| with this package in the file docs/LICENSE.txt.                        |
10 	|                                                                        |
11 	| If you did not receive a copy of the license and are unable to         |
12 	| obtain it through the world-wide-web, please send an email             |
13 	| to license@phalconphp.com so we can send you a copy immediately.       |
14 	+------------------------------------------------------------------------+
15 	| Authors: Andres Gutierrez <andres@phalconphp.com>                      |
16 	|          Eduar Carvajal <eduar@phalconphp.com>                         |
17 	+------------------------------------------------------------------------+
18 */
19 
20 typedef struct _phvolt_parser_token {
21 	char *token;
22 	int opcode;
23 	int token_len;
24 	int free_flag;
25 } phvolt_parser_token;
26 
27 typedef struct _phvolt_parser_status {
28 #if PHP_VERSION_ID < 70000
29 	zval *ret;
30 #else
31 	zval ret;
32 #endif
33 	phvolt_scanner_state *scanner_state;
34 	int status;
35 	unsigned int syntax_error_len;
36 	char *syntax_error;
37 	phvolt_scanner_token *token;
38 } phvolt_parser_status;
39 
40 #define PHVOLT_PARSING_OK 1
41 #define PHVOLT_PARSING_FAILED 0
42 
43 extern int phvolt_parse_view(zval *result, zval *view_code, zval *template_path TSRMLS_DC);
44 int phvolt_internal_parse_view(zval **result, zval *view_code, zval *template_path, zval **error_msg TSRMLS_DC);
45