History log of /PHP-Parser/ (Results 1426 – 1450 of 1690)
Revision (<<< Hide revision tags) (Show revision tags >>>)Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
35ec185508-Jun-2012 nikic

Make $line argument for Comment optional

Also add setLine() method.

0911b2e106-Jun-2012 Jon Cave

Add line number information to comments

Line numbers are stored in the $line property of the PHPParser_Comment
and PHPParser_Comment_Doc classes and can be retrieved with getLine().

3f66b7ec12-May-2012 nikic

Update changelog

e16513a012-May-2012 nikic

Fix parsing of new expressions in parenthesis

The new dereferencing syntaxes (new Foo)->bar and (new Foo)['bar'] were
causing a shift/reduce conflict with the '(' expr ')' rule. When

Fix parsing of new expressions in parenthesis

The new dereferencing syntaxes (new Foo)->bar and (new Foo)['bar'] were
causing a shift/reduce conflict with the '(' expr ')' rule. When
(new Foo) was encountered (without dereference operators following) the
parser thus threw a parse error.

The fix simply adds a special '(' new_expr ')' rule to expr. This does not
remove the shift/reduce conflict itself, but makes it irrelevant.

This fixes issue #20.

show more ...

25bbd69911-May-2012 nikic

Improve some formatting

10fc22f511-May-2012 nikic

Replace \N with .

Older PCRE versions (coming with PHP 5.2) don't support \N yet.

93392c8211-May-2012 nikic

Fix getAttribute signature in Node interface

This fixes a build failure on PHP 5.2.

dab2fd4b11-May-2012 nikic

Fix comment reformatting on Linux

Remove the use of \R (with BSR_ANYCRLF) at two places, as it was causing
problems there.

cc4b876111-May-2012 nikic

Update CHANGELOG

4f9dd7b111-May-2012 nikic

Add more extensive Lexer component docs

107c7a2611-May-2012 nikic

Update docs

81e53ce011-May-2012 nikic

Insert comments when pretty printing

This changset also adds unit tests for Comments and adds a way to test the
pretty printer.


lib/PHPParser/Comment.php
lib/PHPParser/PrettyPrinterAbstract.php
test/PHPParser/Tests/CodeTestAbstract.php
test/PHPParser/Tests/CommentTest.php
test/PHPParser/Tests/ParserTest.php
test/PHPParser/Tests/PrettyPrinterTest.php
test/code/parser/expr/arrayDef.test
test/code/parser/expr/assign.test
test/code/parser/expr/cast.test
test/code/parser/expr/clone.test
test/code/parser/expr/closure.test
test/code/parser/expr/comparison.test
test/code/parser/expr/errorSuppress.test
test/code/parser/expr/exit.test
test/code/parser/expr/fetchAndCall/args.test
test/code/parser/expr/fetchAndCall/constFetch.test
test/code/parser/expr/fetchAndCall/funcCall.test
test/code/parser/expr/fetchAndCall/newDeref.test
test/code/parser/expr/fetchAndCall/objectAccess.test
test/code/parser/expr/fetchAndCall/simpleArrayAccess.test
test/code/parser/expr/fetchAndCall/staticCall.test
test/code/parser/expr/fetchAndCall/staticPropertyFetch.test
test/code/parser/expr/includeAndEval.test
test/code/parser/expr/issetAndEmpty.test
test/code/parser/expr/logic.test
test/code/parser/expr/math.test
test/code/parser/expr/new.test
test/code/parser/expr/print.test
test/code/parser/expr/shellExec.test
test/code/parser/expr/ternary.test
test/code/parser/expr/variable.test
test/code/parser/scalar/constantString.test
test/code/parser/scalar/docString.test
test/code/parser/scalar/encapsedString.test
test/code/parser/scalar/float.test
test/code/parser/scalar/int.test
test/code/parser/scalar/magicConst.test
test/code/parser/stmt/blocklessStatement.test
test/code/parser/stmt/class/abstract.test
test/code/parser/stmt/class/conditional.test
test/code/parser/stmt/class/final.test
test/code/parser/stmt/class/interface.test
test/code/parser/stmt/class/modifier.test-fail
test/code/parser/stmt/class/name.test-fail
test/code/parser/stmt/class/php4Style.test
test/code/parser/stmt/class/simple.test
test/code/parser/stmt/class/staticMethod.test-fail
test/code/parser/stmt/class/trait.test
test/code/parser/stmt/const.test
test/code/parser/stmt/controlFlow.test
test/code/parser/stmt/declare.test
test/code/parser/stmt/echo.test
test/code/parser/stmt/function/byRef.test
test/code/parser/stmt/function/conditional.test
test/code/parser/stmt/function/defaultValues.test
test/code/parser/stmt/function/specialVars.test
test/code/parser/stmt/function/typeHints.test
test/code/parser/stmt/haltCompiler.test
test/code/parser/stmt/haltCompilerInvalidSyntax.test-fail
test/code/parser/stmt/haltCompilerOutermostScope.test-fail
test/code/parser/stmt/if.test
test/code/parser/stmt/inlineHTML.test
test/code/parser/stmt/loop/do.test
test/code/parser/stmt/loop/for.test
test/code/parser/stmt/loop/foreach.test
test/code/parser/stmt/loop/while.test
test/code/parser/stmt/namespace/alias.test
test/code/parser/stmt/namespace/braced.test
test/code/parser/stmt/namespace/mix.test-fail
test/code/parser/stmt/namespace/name.test
test/code/parser/stmt/namespace/name.test-fail
test/code/parser/stmt/namespace/nested.test-fail
test/code/parser/stmt/namespace/notBraced.test
test/code/parser/stmt/namespace/outsideStmt.test
test/code/parser/stmt/namespace/outsideStmt.test-fail
test/code/parser/stmt/switch.test
test/code/parser/stmt/tryCatch.test
test/code/parser/stmt/unset.test
test/code/prettyPrinter/comments.test
a824a2ab06-May-2012 nikic

Fix $node->getDocComment()

getDocComment() now returns the last comment (given that it is a doc
comment). setDocComment() no longer exists, as it doesn't make sense
with the comment

Fix $node->getDocComment()

getDocComment() now returns the last comment (given that it is a doc
comment). setDocComment() no longer exists, as it doesn't make sense
with the comment objects anymore. getAttribute() now returns by reference,
so it also works in reference contexts.

show more ...

9d96dd1706-May-2012 nikic

Adjust XML unserializer for new comments attribute

603582fe06-May-2012 nikic

Add test coverage for two things

e587e3f406-May-2012 nikic

Collect normal comments too, not only doc comments

Comments and doc comments are now saved in the 'comments' attribute, as an
array. The are instances of PHPParser_Comment[_Doc].

dd711f2a05-May-2012 nikic

Generalize the attribute generation for nodes

Now two arrays are fetched from the lexer: $startAttributes and
$endAttributes. When constructing the attributes for a node, the
$startA

Generalize the attribute generation for nodes

Now two arrays are fetched from the lexer: $startAttributes and
$endAttributes. When constructing the attributes for a node, the
$startAttributes from the first token of the node and the $endAttributes
of the last token of the node are merged.

Now the end line is saved in the endLine attribute.

show more ...

5438cc0d05-May-2012 nikic

Add progress indicator for test_old.

I hate waiting for something without seeing at least *some* output.

101a6ddc04-May-2012 nikic

Fix NameResolver to properly copy attributes

2f5ebf7c29-Apr-2012 nikic

Store line and doc comment as attributes


grammar/README.md
grammar/kmyacc.php.parser
grammar/rebuildParser.php
grammar/zend_language_parser.phpy
lib/PHPParser/Node/Arg.php
lib/PHPParser/Node/Const.php
lib/PHPParser/Node/Expr/Array.php
lib/PHPParser/Node/Expr/ArrayDimFetch.php
lib/PHPParser/Node/Expr/ArrayItem.php
lib/PHPParser/Node/Expr/Assign.php
lib/PHPParser/Node/Expr/AssignBitwiseAnd.php
lib/PHPParser/Node/Expr/AssignBitwiseOr.php
lib/PHPParser/Node/Expr/AssignBitwiseXor.php
lib/PHPParser/Node/Expr/AssignConcat.php
lib/PHPParser/Node/Expr/AssignDiv.php
lib/PHPParser/Node/Expr/AssignList.php
lib/PHPParser/Node/Expr/AssignMinus.php
lib/PHPParser/Node/Expr/AssignMod.php
lib/PHPParser/Node/Expr/AssignMul.php
lib/PHPParser/Node/Expr/AssignPlus.php
lib/PHPParser/Node/Expr/AssignRef.php
lib/PHPParser/Node/Expr/AssignShiftLeft.php
lib/PHPParser/Node/Expr/AssignShiftRight.php
lib/PHPParser/Node/Expr/BitwiseAnd.php
lib/PHPParser/Node/Expr/BitwiseNot.php
lib/PHPParser/Node/Expr/BitwiseOr.php
lib/PHPParser/Node/Expr/BitwiseXor.php
lib/PHPParser/Node/Expr/BooleanAnd.php
lib/PHPParser/Node/Expr/BooleanNot.php
lib/PHPParser/Node/Expr/BooleanOr.php
lib/PHPParser/Node/Expr/Cast.php
lib/PHPParser/Node/Expr/ClassConstFetch.php
lib/PHPParser/Node/Expr/Clone.php
lib/PHPParser/Node/Expr/Closure.php
lib/PHPParser/Node/Expr/ClosureUse.php
lib/PHPParser/Node/Expr/Concat.php
lib/PHPParser/Node/Expr/ConstFetch.php
lib/PHPParser/Node/Expr/Div.php
lib/PHPParser/Node/Expr/Empty.php
lib/PHPParser/Node/Expr/Equal.php
lib/PHPParser/Node/Expr/ErrorSuppress.php
lib/PHPParser/Node/Expr/Eval.php
lib/PHPParser/Node/Expr/Exit.php
lib/PHPParser/Node/Expr/FuncCall.php
lib/PHPParser/Node/Expr/Greater.php
lib/PHPParser/Node/Expr/GreaterOrEqual.php
lib/PHPParser/Node/Expr/Identical.php
lib/PHPParser/Node/Expr/Include.php
lib/PHPParser/Node/Expr/Instanceof.php
lib/PHPParser/Node/Expr/Isset.php
lib/PHPParser/Node/Expr/LogicalAnd.php
lib/PHPParser/Node/Expr/LogicalOr.php
lib/PHPParser/Node/Expr/LogicalXor.php
lib/PHPParser/Node/Expr/MethodCall.php
lib/PHPParser/Node/Expr/Minus.php
lib/PHPParser/Node/Expr/Mod.php
lib/PHPParser/Node/Expr/Mul.php
lib/PHPParser/Node/Expr/New.php
lib/PHPParser/Node/Expr/NotEqual.php
lib/PHPParser/Node/Expr/NotIdentical.php
lib/PHPParser/Node/Expr/Plus.php
lib/PHPParser/Node/Expr/PostDec.php
lib/PHPParser/Node/Expr/PostInc.php
lib/PHPParser/Node/Expr/PreDec.php
lib/PHPParser/Node/Expr/PreInc.php
lib/PHPParser/Node/Expr/Print.php
lib/PHPParser/Node/Expr/PropertyFetch.php
lib/PHPParser/Node/Expr/ShellExec.php
lib/PHPParser/Node/Expr/ShiftLeft.php
lib/PHPParser/Node/Expr/ShiftRight.php
lib/PHPParser/Node/Expr/Smaller.php
lib/PHPParser/Node/Expr/SmallerOrEqual.php
lib/PHPParser/Node/Expr/StaticCall.php
lib/PHPParser/Node/Expr/StaticPropertyFetch.php
lib/PHPParser/Node/Expr/Ternary.php
lib/PHPParser/Node/Expr/UnaryMinus.php
lib/PHPParser/Node/Expr/UnaryPlus.php
lib/PHPParser/Node/Expr/Variable.php
lib/PHPParser/Node/Name.php
lib/PHPParser/Node/Param.php
lib/PHPParser/Node/Scalar/ClassConst.php
lib/PHPParser/Node/Scalar/DNumber.php
lib/PHPParser/Node/Scalar/DirConst.php
lib/PHPParser/Node/Scalar/Encapsed.php
lib/PHPParser/Node/Scalar/FileConst.php
lib/PHPParser/Node/Scalar/FuncConst.php
lib/PHPParser/Node/Scalar/LNumber.php
lib/PHPParser/Node/Scalar/LineConst.php
lib/PHPParser/Node/Scalar/MethodConst.php
lib/PHPParser/Node/Scalar/NSConst.php
lib/PHPParser/Node/Scalar/String.php
lib/PHPParser/Node/Scalar/TraitConst.php
lib/PHPParser/Node/Stmt/Break.php
lib/PHPParser/Node/Stmt/Case.php
lib/PHPParser/Node/Stmt/Catch.php
lib/PHPParser/Node/Stmt/Class.php
lib/PHPParser/Node/Stmt/ClassConst.php
lib/PHPParser/Node/Stmt/ClassMethod.php
lib/PHPParser/Node/Stmt/Const.php
lib/PHPParser/Node/Stmt/Continue.php
lib/PHPParser/Node/Stmt/Declare.php
lib/PHPParser/Node/Stmt/DeclareDeclare.php
lib/PHPParser/Node/Stmt/Do.php
lib/PHPParser/Node/Stmt/Echo.php
lib/PHPParser/Node/Stmt/Else.php
lib/PHPParser/Node/Stmt/ElseIf.php
lib/PHPParser/Node/Stmt/For.php
lib/PHPParser/Node/Stmt/Foreach.php
lib/PHPParser/Node/Stmt/Function.php
lib/PHPParser/Node/Stmt/Global.php
lib/PHPParser/Node/Stmt/Goto.php
lib/PHPParser/Node/Stmt/HaltCompiler.php
lib/PHPParser/Node/Stmt/If.php
lib/PHPParser/Node/Stmt/InlineHTML.php
lib/PHPParser/Node/Stmt/Interface.php
lib/PHPParser/Node/Stmt/Label.php
lib/PHPParser/Node/Stmt/Namespace.php
lib/PHPParser/Node/Stmt/Property.php
lib/PHPParser/Node/Stmt/PropertyProperty.php
lib/PHPParser/Node/Stmt/Return.php
lib/PHPParser/Node/Stmt/Static.php
lib/PHPParser/Node/Stmt/StaticVar.php
lib/PHPParser/Node/Stmt/Switch.php
lib/PHPParser/Node/Stmt/Throw.php
lib/PHPParser/Node/Stmt/Trait.php
lib/PHPParser/Node/Stmt/TraitUse.php
lib/PHPParser/Node/Stmt/TraitUseAdaptation/Alias.php
lib/PHPParser/Node/Stmt/TraitUseAdaptation/Precedence.php
lib/PHPParser/Node/Stmt/TryCatch.php
lib/PHPParser/Node/Stmt/Unset.php
lib/PHPParser/Node/Stmt/Use.php
lib/PHPParser/Node/Stmt/UseUse.php
lib/PHPParser/Node/Stmt/While.php
lib/PHPParser/NodeAbstract.php
lib/PHPParser/Parser.php
lib/PHPParser/Serializer/XML.php
lib/PHPParser/Unserializer/XML.php
test/PHPParser/Tests/NodeAbstractTest.php
test/PHPParser/Tests/NodeVisitor/NameResolverTest.php
test/PHPParser/Tests/Serializer/XMLTest.php
test/PHPParser/Tests/Unserializer/XMLTest.php
c3cf3f2929-Apr-2012 nikic

Adjust test_old to use new Lexer injection method

f66a672d29-Apr-2012 nikic

Start refactoring parser skeleton

The yacc parser skeleton with all those odd $yy short names is quite
non-obvious. This commits starts to refactor it a bit, to use more
obvious name

Start refactoring parser skeleton

The yacc parser skeleton with all those odd $yy short names is quite
non-obvious. This commits starts to refactor it a bit, to use more
obvious names and logic.

show more ...

3701e02d25-Apr-2012 nikic

Use inject-once approach for lexer

Now the lexer is injected only once when creating the parser. Instead of

$parser = new PHPParser_Parser;
$parser->parse(new PHPParser_

Use inject-once approach for lexer

Now the lexer is injected only once when creating the parser. Instead of

$parser = new PHPParser_Parser;
$parser->parse(new PHPParser_Lexer($code));
$parser->parse(new PHPParser_Lexer($code2));

you write:

$parser = new PHPParser_Parser(new PHPParser_Lexer);
$parser->parse($code);
$parser->parse($code2);

show more ...

271156f924-Apr-2012 nikic

Fix typo

f33cd97a04-May-2012 nikic

Merge pull request #22 from schmittjoh/resolveCatchType

fixes a bug where catch type was not resolved


1...<<51525354555657585960>>...68