Last active
October 2, 2015 04:22
-
-
Save marcioAlmada/faf67d251ada131043bd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
callable_arg_type_list: | |
/* empty */ { $$ = NULL; } | |
| '(' ')' { $$ = zend_ast_create_list(0, ZEND_AST_PARAM_LIST); } | |
| T_INT_CAST { | |
zval zv; | |
ZVAL_STRINGL(&zv, "int", sizeof("int")-1); | |
zend_ast *type = zend_ast_create_zval_ex(&zv, ZEND_NAME_NOT_FQ); | |
zend_ast *arg = zend_ast_create_ex(ZEND_AST_PARAM, 0, type, NULL, NULL); | |
zend_ast *args = zend_ast_create_list(0, ZEND_AST_PARAM_LIST); | |
zend_ast_list_add(args, arg); | |
$$ = args; | |
} | |
| T_DOUBLE_CAST ... | |
; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@nikita2206 in case you miss the chat room ping ^