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
nikic
947a897238
Make names in the parser more descriptive
...
And improve the code a tad bit in general.
I left YY2TBLSTATES and YYNLSTATES around, because I don't fully
understand their role in the action double indexing.
2014-04-20 23:05:51 +02:00
nikic
1edbc89749
Use normal properties instead of static ones
2014-04-20 00:34:31 +02:00
nikic
0faa844a75
Separate parser code from generated data
2014-04-20 00:19:35 +02:00
nikic
3db3ad7d1e
Add experimental php-parse script
...
Script supporting dumping, pretty printing, serializing and resolving
names. Intended to help exploring and debugging the node tree.
2014-04-19 23:14:28 +02:00
nikic
4743e9b0b8
Update constant scalar expression support
2014-04-19 22:53:13 +02:00
nikic
8499696021
Add note about prettyPrintFile() to docs
2014-04-19 22:30:20 +02:00
nikic
e4e56511b9
Merge branch '0.9'
2014-04-19 22:26:35 +02:00
nikic
5960ecfc10
Disable xdebug.scream while lexing
2014-04-19 22:26:05 +02:00
Nikita Popov
c341ab2ecf
Make autoloader for new names PSR-0 compliant
2014-04-02 09:44:45 +02:00
nikic
c62ffedfca
Require file only if file exists
...
Allows usage of class_exists() on undefined classes.
2014-03-27 15:40:08 +01:00
nikic
a6d46c17b1
Release PHP-Parser 1.0.0 Beta 1
2014-03-27 14:12:13 +01:00
nikic
fa96086a49
Update changelog
2014-03-27 13:43:42 +01:00
nikic
4c06b0919a
Merge branch '0.9'
...
Conflicts:
lib/PhpParser/Template.php
lib/PhpParser/TemplateLoader.php
2014-03-27 12:53:24 +01:00
nikic
8429157ab5
Deprecate templating functionality
...
Other projects cover this a lot better.
2014-03-27 12:51:13 +01:00
Martin Hasoň
2605b8319e
Added support for autoload $prepend
2014-03-27 12:39:30 +01:00
nikic
91f6880734
Improve pretty printing of empty statement lists
...
The pStmts() method now also includes the leading \n, however only
if the statement list is non-empty.
2014-03-27 12:31:21 +01:00
nikic
b3332184cf
Minor cleanups to emulative lexer
...
Be consistent about version numbers. We'll only emulate until
beta1 of a release, as that's the feature freeze release.
2014-03-27 00:01:39 +01:00
nikic
1cb6e1407c
Fix ** emulation wrt comments
2014-03-26 23:41:06 +01:00
nikic
a5e0bbcb62
Support use function/const in name resolver
2014-03-26 23:28:32 +01:00
nikic
3b7829b011
Add support for function and constant import (PHP 5.6)
2014-03-26 22:33:45 +01:00
nikic
bea89a0bf2
Add support for constant scalar expressions (PHP 5.6)
2014-03-26 21:48:12 +01:00
nikic
cda6f575f0
Add support for pow operator (PHP 5.6)
2014-03-26 19:18:16 +01:00
nikic
b5bcfa1168
Add support for argument unpacking (PHP 5.6)
2014-03-26 18:42:46 +01:00
nikic
96f1151ab2
Add support for variadic parameters (PHP 5.6)
2014-03-26 18:23:30 +01:00
nikic
f5be0d30f7
Guarantee that subnodes are always in the right order
2014-03-22 14:49:56 +01:00
Tomáš Polomský
c8c233f900
Correctly pretty print negative floats
2014-03-22 14:24:35 +01:00
nikic
8c59f41d02
Remove inline Name[] creations
...
This ensures that the attributes on the Name nodes are correct.
2014-03-22 14:24:33 +01:00
Nikita Popov
74efea91d1
Merge pull request #96 from Techworker/patch-1
...
Adjustment to documentation
2014-02-21 18:19:28 +01:00
nikic
70077039b4
Add Scalar\MagicConst->getName()
...
Return magic constant name, e.g. __CLASS__.
Resolves #95 .
2014-02-21 18:16:18 +01:00
Benjamin Ansbach
558087399f
Adjustment to documentation
2014-02-19 23:06:39 +01:00
nikic
1c8481bff6
Merge branch '0.9'
...
Conflicts:
lib/PhpParser/Lexer.php
lib/PhpParser/Node/Stmt/Class.php
lib/PhpParser/Node/Stmt/ClassMethod.php
lib/PhpParser/Node/Stmt/Interface.php
lib/PhpParser/Node/Stmt/Namespace.php
lib/PhpParser/Node/Stmt/UseUse.php
lib/PhpParser/Parser.php
2014-02-12 20:23:12 +01:00
Martin Hasoň
118f28344d
Synchronized error messages with native php error messages
2014-02-12 20:19:48 +01:00
nikic
523e024ba0
Fix a number of other typos
2014-02-12 17:47:34 +01:00
Nikita Popov
99e44eb8e1
Merge pull request #94 from llaville/typo-1
...
Fix path in phpunit.xml.dist
2014-02-12 17:43:44 +01:00
Laurent Laville
4223e643dc
fix typo (see also issue 93 already fixed)
2014-02-12 17:39:57 +01:00
Nikita Popov
26422257f5
Merge pull request #93 from hason/patch-1
...
Fix path in rebuildParser.php
2014-02-12 17:36:16 +01:00
Martin Hasoň
d6eac28955
Fixed typo
2014-02-12 14:12:55 +01:00
nikic
5cab2a7844
Specify autoloader in composer.json
2014-02-06 21:39:57 +01:00
nikic
843aad4382
Fix readme
2014-02-06 20:54:49 +01:00
nikic
5e725df892
Update docs to use new names
2014-02-06 20:52:01 +01:00
nikic
f82862ec9c
Port library to use namespaces, with BC for old names
2014-02-06 20:29:35 +01:00
nikic
10e1c1895c
Remove 5.2 compatibilty code in some places
2014-02-05 22:37:07 +01:00
nikic
0ac054a74f
Bump version to 1.0-dev, without PHP 5.2 support
2014-01-26 19:05:00 +01:00
Arne Blankerts
6f36a88993
Ensure no registered error handler will see the 'reset' error
2014-01-24 20:27:42 +01:00
Nikita Popov
bf9956b634
Merge pull request #86 from GrahamCampbell/travis-tweaks
...
Run travis tests on hhvm as well
2014-01-20 08:24:18 -08:00
Graham Campbell
3a5f7d6cae
Updated travis.yml
2014-01-20 11:20:54 +00:00
Nikita Popov
0353c921bd
Merge pull request #81 from brikou/Elseif_to_ElseIf
...
Rename "Elseif" to "ElseIf"
2013-11-27 11:33:56 -08:00