History log of /PHP-Parser/test/PhpParser/LexerTest.php (Results 26 – 33 of 33)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: v2.0.1, v2.0.0, v2.0.0beta1, v1.4.1, v2.0.0alpha1, v1.4.0
# fd7ee2e0 20-Jun-2015 Nikita Popov

Add missing regex anchor


# bc21514e 13-Jun-2015 Nikita Popov

Move token constants into separate class

As these are shared between Php5 and Php7 parsers they should be
in some common place, otherwise we'd have to always reference either
one or

Move token constants into separate class

As these are shared between Php5 and Php7 parsers they should be
in some common place, otherwise we'd have to always reference either
one or the other.

show more ...


Revision tags: v1.3.0, v1.2.2, v1.2.1, v1.2.0
# d56ff5a3 26-Feb-2015 Nikita Popov

Fix lexer tests for HHVM

HHVM does not throw warnings from token_get_all()
for invalid chars and unterminated comments. This
is not really integral functionality, so I'm okay
to

Fix lexer tests for HHVM

HHVM does not throw warnings from token_get_all()
for invalid chars and unterminated comments. This
is not really integral functionality, so I'm okay
to just skip it to get a passing HHVM build.

show more ...


Revision tags: v1.1.0
# 46975107 18-Dec-2014 Nikita Popov

Support token position attributes in lexer

Also change endFilePos semantics to refer to the last character that
is *included* in the token, rather than one past the last character.
T

Support token position attributes in lexer

Also change endFilePos semantics to refer to the last character that
is *included* in the token, rather than one past the last character.
This ensures that all end* attributes have the same semantics.

show more ...


# 7c98ad6f 27-Nov-2014 nikic

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.


# 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
# 66fd29cb 30-Sep-2014 nikic

Use stricter assertions where possible


Revision tags: v1.0.0, v1.0.0beta2, v0.9.5, v1.0.0beta1
# f82862ec 06-Feb-2014 nikic

Port library to use namespaces, with BC for old names


12