Req #70024 [NEW]: Add column information to AST
From: krblock at computer dot org
Operating system:
PHP version: 7.0.0alpha2
Package: *Compile Issues
Bug Type: Feature/Change Request
Bug description:Add column information to AST
Description:
------------
I am evaluating PHP Parsers to use in a Static Analysis tool. When
defects are reported, we like to pin point the location of the issue as
precisely as possible. We also like to provide cross reference
information. It would be useful to have column location stored in the
AST in addition to line location.
Test script:
---------------
I used the AST dumper provided here:
https://github.com/nikic/php-ast
RFC for AST is here:
https://wiki.php.net/rfc/abstract_syntax_tree
Both omit column information.
--
Edit bug report at https://bugs.php.net/bug.php?id=70024&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=70024&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=70024&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=70024&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=70024&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=70024&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=70024&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=70024&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=70024&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=70024&r=support
Expected behavior: https://bugs.php.net/fix.php?id=70024&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=70024&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=70024&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=70024&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=70024&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=70024&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=70024&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=70024&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=70024&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=70024&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=70024&r=mysqlcfg
Thread (7 messages)
- krblock at computer dot org