diff options
Diffstat (limited to 'sapi/phpdbg/phpdbg_parser.y')
| -rw-r--r-- | sapi/phpdbg/phpdbg_parser.y | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sapi/phpdbg/phpdbg_parser.y b/sapi/phpdbg/phpdbg_parser.y index b61c9c0a26..c4f6682fee 100644 --- a/sapi/phpdbg/phpdbg_parser.y +++ b/sapi/phpdbg/phpdbg_parser.y @@ -29,7 +29,7 @@ ZEND_EXTERN_MODULE_GLOBALS(phpdbg) %} %pure-parser -%error-verbose +%define parse.error verbose %code requires { #include "phpdbg.h" @@ -39,9 +39,6 @@ typedef void* yyscan_t; #endif } -%output "sapi/phpdbg/phpdbg_parser.c" -%defines "sapi/phpdbg/phpdbg_parser.h" - %token T_EVAL "eval" %token T_RUN "run" %token T_SHELL "shell" @@ -68,7 +65,7 @@ typedef void* yyscan_t; input : command { $$ = $1; } | input T_SEPARATOR command { phpdbg_stack_separate($1.top); $$ = $3; } - | /* nothing */ + | /* empty */ ; command @@ -79,7 +76,7 @@ command parameters : parameter { phpdbg_stack_push(PHPDBG_G(parser_stack), &$1); $$.top = PHPDBG_G(parser_stack)->top; } | parameters parameter { phpdbg_stack_push(PHPDBG_G(parser_stack), &$2); $$.top = PHPDBG_G(parser_stack)->top; } - | parameters req_id { $$ = $1; } + | parameters T_REQ_ID { $$ = $1; PHPDBG_G(req_id) = $2.num; } ; parameter |
