History log of /PHP-Parser/lib/PhpParser/Lexer.php (Results 51 – 75 of 80)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# e3b87f40 24-Jan-2017 Matthew Brown

Add non-void return types


Revision tags: v3.0.2, v3.0.1, v3.0.0
# bcdfb703 23-Nov-2016 Nikita Popov

Cleanup imports

Thanks PhpStorm :)


Revision tags: v3.0.0beta2
# f99a96e0 09-Oct-2016 Nikita Popov

Introduce ErrorHandler

Add ErrorHandler interface, as well as ErrorHandler\Throwing
and ErrorHandler\Collecting. The error handler is passed to
Parser::parse(). This supersedes the t

Introduce ErrorHandler

Add ErrorHandler interface, as well as ErrorHandler\Throwing
and ErrorHandler\Collecting. The error handler is passed to
Parser::parse(). This supersedes the throwOnError option.

NameResolver now accepts an ErrorHandler in the ctor.

show more ...


# b2fe43cf 30-Sep-2016 Nikita Popov

Next try...


# 648a246b 30-Sep-2016 Nikita Popov

Next try to fix HHVM build


# 5025d751 30-Sep-2016 Nikita Popov

Try to fix HHVM build


# c79ea6d1 30-Sep-2016 Nikita Popov

Support recovery from lexer errors

Lexer::startLexing() no longer throws, instead errors can be fetched
using Lexer::getErrors().

Lexer errors now also contain full line and pos

Support recovery from lexer errors

Lexer::startLexing() no longer throws, instead errors can be fetched
using Lexer::getErrors().

Lexer errors now also contain full line and position information.

show more ...


Revision tags: v3.0.0beta1, v2.1.1
# ec614c95 25-Jul-2016 Nikita Popov

Add hasLeadingNewline attribute to InlineHTML

Use this attribute to not print an extra newline if the original
code did not have it.


Revision tags: v3.0.0alpha1, v2.1.0
# b31a973f 04-Apr-2016 Nikita Popov

Another fix for B"" handling

The lexer fix also need to account for uppercase B.


# 35011d2e 01-Apr-2016 Nikita Popov

Deduplicate attribute assignment code a bit


# 15a2388d 01-Apr-2016 Nikita Popov

Add start file offset to Comments


# f493219c 10-Mar-2016 Nikita Popov

Move "kind" attribute handling out of lexer

Doesn't belong there and will cause issue with multiple assignments.


# ae30f97a 09-Mar-2016 Nikita Popov

Add "kind" attribute to LNumbers

Kind specifies whether the number was formatted as decimal, octal,
binary or hex. The pretty printer reproduces the number kind (but
not necessarily

Add "kind" attribute to LNumbers

Kind specifies whether the number was formatted as decimal, octal,
binary or hex. The pretty printer reproduces the number kind (but
not necessarily the exact formatting).

show more ...


# 47c342a3 09-Mar-2016 Nikita Popov

Add "kind" attribute to Stmt\Exit_

Attribute specifies whether this is a "die" or an "exit" and the
pretty printer behaves accordingly.


Revision tags: v2.0.1, v2.0.0
# 75cd4ab7 21-Nov-2015 Nikita Popov

Use error_clear_last() on PHP 7

Instead of the ugly undefined variable hack


Revision tags: v2.0.0beta1, v1.4.1, v2.0.0alpha1, v1.4.0
# d5668f53 04-Jul-2015 Nikita Popov

Fix __HALT_COMPILER_OFFSET__ support on HHVM


# fd7ee2e0 20-Jun-2015 Nikita Popov

Add missing regex anchor


# 179d32cf 20-Jun-2015 Nikita Popov

Simplify handleHaltCompiler() implementation

Nowadays we're already tracking the filePos, no need to
recompute it.


# 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
# 5513073a 01-May-2015 Nikita Popov

Drop Lexer::getPosition()

This was a leftover from the original column info implementation.


# a35c2a20 27-Apr-2015 Nikita Popov

Add column info to EOF errors

EOF errors are now located one past the end of the file.


# 33a39fae 14-Apr-2015 Gerrit Addiks

added column-numbers to syntax errors


Revision tags: v1.2.2, v1.2.1
# dce19b07 23-Mar-2015 Nikita Popov

Strict type compliance

Were this library to be fully annotated with scalar types and
return types where possible and were strict types to be enabled
for all files, the test suite wou

Strict type compliance

Were this library to be fully annotated with scalar types and
return types where possible and were strict types to be enabled
for all files, the test suite would now pass.

show more ...


Revision tags: v1.2.0
# 592836c4 14-Mar-2015 Nikita Popov

Add support for T_HASHBANG (HHVM)


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

Update lexer docs for attribute options


1234