Re: definition of zendparse
| From: | Thomas Punt | Date: | Mon, 26 Feb 2018 19:43:32 +0000 |
| Subject: | Re: definition of zendparse | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-101937@lists.php.net to get a copy of this message | ||
Hi!
> It seems that the define is backwards though. ‘#define yyparse zendparse’ still depends on
> a zendparse symbol. There is no function definition for zendparse. All I can see is yyparse in the
> generated file. What are your thoughts?
Right, yyparse is aliased to zendparse. yyparse is used for the symbol definition name (instead of
zendparse) in the generated parser[1], where it will be replaced with zendparse by the preprocessor.
Thanks,
Tom
[1]: https://gist.github.com/tpunt/c22aea1602594d6cfcc94f801d580241#file-zend_language_parser-c-L4489
<https://gist.github.com/tpunt/c22aea1602594d6cfcc94f801d580241#file-zend_language_parser-c-L4489>