nikic
7c98ad6f9b
Support file offsets in emulative lexer as well
...
Also run normal lexer tests against emulative lexer and fix a bug
in __halt_compiler() handling found as a result.
2014-11-27 20:57:38 +01:00
Máximo Cuadros Ortiz
d774dbc1b7
Add optional startFilePos and endFilePos attributes
...
The lexer can now optionally add startFilePos and endFilePos
attributes, which are offsets in to the lexed code string.
The end offset currently points one past the last character of
the token - this is pending further discussion.
The attributes are not added by default and have to be enabled
using the new 'usedAttributes' lexer option:
$lexer = new Lexer([
'usedAttributes' => [
'comments', 'startLine', 'endLine',
'startFilePos', 'endFilePos'
]
]);
2014-11-27 20:38:29 +01:00
Dexter Gerig
1a93cc3b9d
Add line returns
...
Add line returns to the help message so that the terminal won't end up on the same line.
2014-11-25 19:03:35 -06:00
nikic
e26e63e9b0
Error on final or abstract properties
2014-11-13 20:25:52 +01:00
nikic
0f69f12b94
Use "public" visibility when not explicitly given
...
Fixes issue #143
2014-11-13 20:21:21 +01:00
nikic
a8ffc6fcfc
Release PHP-Parser 1.0.2
2014-11-04 23:12:46 +01:00
nikic
7fbdb79a08
Fix whitespace when printing trait alias modifiers
2014-11-03 16:16:15 +01:00
Arne Blankerts
6fad8ff32a
Make NameResolver resolve trait alias and precedence names
2014-11-03 16:06:43 +01:00
nikic
b9a60372f2
Release version 1.0.1
2014-10-14 21:40:07 +02:00
nikic
eb20e32914
Update changelog
2014-10-14 21:37:04 +02:00
nikic
f41a4c9acb
Fix wrong function name in docs
2014-10-14 21:31:29 +02:00
nikic
767f23c3a9
Update lexer docs
...
Remove some very questionable examples for changing startLexing()
to accept a file name.
Add token offset lexer implementation and usage example.
2014-10-11 21:47:11 +02:00
Nikita Popov
f8678ad7e9
Merge pull request #138 from jbrooksuk/patch-1
...
Fixed a spelling mistake
2014-10-01 12:18:18 +02:00
James Brooks
63c18b29e4
Fixed a spelling mistake
2014-10-01 09:18:01 +01:00
nikic
99df8b86ae
Support HHVM T_ONUMBER token
2014-09-30 20:55:58 +02:00
nikic
66fd29cb58
Use stricter assertions where possible
2014-09-30 20:38:09 +02:00
nikic
3d40e2217d
Annotate some APIs as @internal
2014-09-30 20:26:06 +02:00
nikic
16dff7c2e6
Add ability to pass code directly to php-parse.php
2014-09-28 13:14:37 +02:00
nikic
88e2d42ba4
Fix var_dump truncation with xdebug in php-parse.php
2014-09-28 13:08:59 +02:00
nikic
69701430c1
Cover remaining constant scalar expressions
2014-09-28 13:05:23 +02:00
nikic
6dc24fa9f5
Fix coverage annotations
2014-09-28 12:49:12 +02:00
nikic
3e1665bbbd
Disallow new without a class name
...
Fixes #137 .
2014-09-28 12:41:35 +02:00
nikic
2b96ab8edc
Release PHP-Parser 1.0.0
2014-09-12 14:48:23 +02:00
nikic
7503356e03
Fix typos
2014-09-12 14:44:32 +02:00
nikic
22ef0de7ef
Add migration guide for 0.9 -> 1.0
2014-09-12 14:40:17 +02:00
nikic
5d7fec2027
Mention that composer autoload.php will work as well
2014-09-12 13:51:17 +02:00
nikic
6423864160
Add Autoloader tests
2014-09-12 13:45:34 +02:00
nikic
fd064dac6c
Very that node type is valid in XML unserializer
2014-09-12 00:39:59 +02:00
nikic
d9bd550414
Fix XML unserializer
2014-09-12 00:37:21 +02:00
nikic
94eca2ce44
Remove deprecated Template and TemplateLoader
2014-09-12 00:25:30 +02:00
nikic
e65fd664d1
Small docs touchups and typo fixes
2014-09-12 00:21:27 +02:00
nikic
7a3789f1a9
Remove "experimental" message
2014-08-31 17:05:11 +02:00
nikic
b31f36bf89
Release PHP-Parser 1.0.0 Beta 2
2014-08-31 16:54:25 +02:00
nikic
3d583ab19c
Update changelog
2014-08-31 16:39:53 +02:00
nikic
616be1d0fc
Use emulative lexer for < 5.6RC1
...
Earlier releases come with incorrect tokenizer data for T_POW and
T_POW_EQUAL.
2014-08-31 16:33:41 +02:00
nikic
7c81229261
Disable xdebug var_dump in php-parse script
2014-08-31 16:21:21 +02:00
nikic
452e1c0180
Add constant dereferencing, a list-minute 5.6 change
2014-08-31 16:14:36 +02:00
Nikita Popov
31bc022d0d
Merge pull request #124 from sasezaki/patch-1
...
Add PHP 5.6 to .travis.yml
2014-08-30 12:12:32 +02:00
kazusuke sasezaki
ce1078bc00
add PHP 5.6 to .travis.yml
2014-08-29 00:44:47 +09:00
nikic
6d0589d14f
Ensure that special class names are unqualified
...
Replicates the PHP error message
2014-08-11 22:04:52 +02:00
nikic
ef121e690c
Preserve case of "static" class name
2014-08-11 21:44:50 +02:00
Elliot Levin
c0340053d1
Fix case sensitivity for special class names
2014-08-11 21:41:54 +02:00
Yuriy Vilks
39f323b5ad
Fix classname of Class_ in docblock of BuilderFactory
2014-08-11 20:53:18 +02:00
nikic
22c76a3da4
Update changelog
2014-07-23 21:35:24 +02:00
nikic
a332352dbc
Merge branch '0.9'
2014-07-23 21:24:21 +02:00
nikic
ef70767475
Release version 0.9.5
2014-07-23 20:24:17 +02:00
nikic
1cecf9efc5
Revert change to NodeTraverserInterface
...
Only add this method in 1.0, to avoid any BC breaks.
2014-07-23 20:21:42 +02:00
nikic
1f143393e5
Rewrite namespace handling code
...
Add a check for disallowed statements between braced namespaces
while at it.
2014-04-21 15:16:00 +02:00
nikic
6d1f77132c
Move Stmt\Namespace_::postprocess() to parser
2014-04-21 12:30:55 +02:00
nikic
2e195d7cb2
Make sure that pretty printer preserves whitespace after <?php
2014-04-21 11:15:33 +02:00