-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathxx.h
38 lines (33 loc) · 1.47 KB
/
xx.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
+--------------------------------------------------------------------------+
| Zephir Language |
+--------------------------------------------------------------------------+
| Copyright (c) 2013-2014 Zephir Team and contributors |
+--------------------------------------------------------------------------+
| This source file is subject the MIT license, that is bundled with |
| this package in the file LICENSE, and is available through the |
| world-wide-web at the following url: |
| http://zephir-lang.com/license.html |
| |
| If you did not receive a copy of the MIT license and are unable |
| to obtain it through the world-wide-web, please send a note to |
| license@zephir-lang.com so we can mail you a copy immediately. |
+--------------------------------------------------------------------------+
*/
typedef struct _xx_parser_token {
int opcode;
std::string token;
int token_len;
int free_flag;
} xx_parser_token;
typedef struct _xx_parser_status {
int status;
Json::Value *ret;
xx_scanner_state *scanner_state;
xx_scanner_token *token;
std::string syntax_error;
unsigned int syntax_error_len;
unsigned int number_brackets;
} xx_parser_status;
#define XX_PARSING_OK 1
#define XX_PARSING_FAILED 0