diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-03-15 12:36:49 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-03-21 16:27:48 +0100 |
commit | e528762c1c59bc0bd0bd6d78246c14269630cf0f (patch) | |
tree | e8ee4eec737685c2a0ea5c2ba78fb86fd54035e5 /ext/pcre/php_pcre.c | |
parent | 1cf84f1579c54233c69a9394a8c02d29e092e32a (diff) | |
download | php-git-e528762c1c59bc0bd0bd6d78246c14269630cf0f.tar.gz |
Switch to bison location tracking
Locations for AST nodes are now tracked with the help of bison
location tracking. This is more accurate than what we currently do
and easier to extend with more information.
A zend_ast_loc structure is introduced, which is used for the location
stack. Currently it only holds the start lineno, but can be extended
to also hold end lineno and offset/column information in the future.
All AST constructors now accept a zend_ast_loc* as first argument, and
will use it to determine their lineno. Previously this used either the
CG(zend_lineno), or the smallest AST lineno of child nodes.
On the parser side, the location structure for a whole rule can be
obtained using the &@$ character salad.
Diffstat (limited to 'ext/pcre/php_pcre.c')
0 files changed, 0 insertions, 0 deletions