History log of /PHP-Parser/lib/PhpParser/ParserAbstract.php (Results 126 – 131 of 131)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: v1.1.0
# d774dbc1 27-Nov-2014 Máximo Cuadros Ortiz

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 e

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'
]
]);

show more ...


Revision tags: v1.0.2, v1.0.1, v1.0.0, v1.0.0beta2, v0.9.5
# 1f143393 21-Apr-2014 nikic

Rewrite namespace handling code

Add a check for disallowed statements between braced namespaces
while at it.


# 6d1f7713 21-Apr-2014 nikic

Move Stmt\Namespace_::postprocess() to parser


# 947a8972 20-Apr-2014 nikic

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 th

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.

show more ...


# 1edbc897 19-Apr-2014 nikic

Use normal properties instead of static ones


# 0faa844a 19-Apr-2014 nikic

Separate parser code from generated data


123456