History log of /PHP-Parser/bin/php-parse (Results 1 – 21 of 21)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 4b497045 29-Jul-2023 Nikita Popov

Move attribute handling into parser

The Lexer now only provides the tokens to the parser, while the
parser is responsible for determining which attributes are placed
on notes. This o

Move attribute handling into parser

The Lexer now only provides the tokens to the parser, while the
parser is responsible for determining which attributes are placed
on notes. This only needs to be done when the attributes are
actually needed, rather than for all tokens.

This removes the usedAttributes lexer option (and lexer options
entirely). The attributes are now enabled unconditionally. They
have less overhead now, and the need to explicitly enable them for
some use cases (e.g. formatting-preserving printing) doesn't seem
like a good tradeoff anymore.

There are some additional changes to the Lexer interface that
should be done after this, and the docs / upgrading guide haven't
been adjusted yet.

show more ...


# 4c3e759a 01-Mar-2023 Nikita Popov

Support parsing from stdin in php-parse

Following the usual convention, read from stdin if the file name
is "-".


# e68b17cc 04-Sep-2022 Nikita Popov

Add --version flag to php-parse


# e69ebbbf 03-May-2021 Rod Elias

chore: use the word Xdebug instead of XDebug


Revision tags: v4.3.0, v4.2.5, v4.2.4, v4.2.3, v4.2.2
# 78d9985d 28-Apr-2019 Andrea Cardaci

Print messages to stderr in bin/php-parse and fix exit status

Close #605.


Revision tags: v4.2.1, v4.2.0, v4.1.1, v4.1.0, v4.0.4, v4.0.3, v4.0.2, v4.0.1, v4.0.0, v3.1.5
# ff10cc9d 08-Feb-2018 Nikita Popov

Move JSON representation into component documentation

Also add -j flag to php-parse script to get a JSON dump. Also
drop obsolete flag for XML dumping.


Revision tags: v4.0.0beta1, v3.1.4, v4.0.0alpha3, v3.1.3, v4.0.0alpha2, v3.1.2, v4.0.0alpha1, v3.1.1
# 6ab69a7d 13-Aug-2017 TomasVotruba

[cs] apply short array to bin/php-parse


Revision tags: v3.1.0, v3.0.6, v3.0.5
# 9cd9c0cd 23-Feb-2017 Nikita Popov

Drop XML serialization from php-parse

The class no longer exists, so this broke the script.


Revision tags: v3.0.4
# 41facc02 08-Feb-2017 Jesse Schalken

Fix typo with-posititions => with-positions


Revision tags: v3.0.3
# d5eebf72 09-Dec-2016 Nikita Popov

Add php-parse --with-positions

To invoke NodeDumper in dumpPositions mode


Revision tags: v3.0.2, v3.0.1, v3.0.0, v3.0.0beta2
# 4e25f515 16-Oct-2016 Nikita Popov

Fix php-parse script


# f3c7dc9d 30-Sep-2016 Nikita Popov

Add Error::getMessageWithColumnInfo()


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

Add error recovery mode to php-parse script


Revision tags: v3.0.0alpha1, v2.1.0
# 82bb6627 15-Apr-2016 Nikita Popov

Drop superfluous newlines before help text


# d1dd9f5a 15-Apr-2016 Remi Collet

support -h and --help standard options


# 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 ...


# a0c216bf 09-Mar-2016 Nikita Popov

Add dumpComments option to NodeDumper

Adding this as an option to avoid breaking people's tests.

Some of the test results show pretty clearly that we are incorrectly
assigning t

Add dumpComments option to NodeDumper

Adding this as an option to avoid breaking people's tests.

Some of the test results show pretty clearly that we are incorrectly
assigning the same comment multiple times for nested nodes (mentioned
in #36).

show more ...


# 573c7c20 03-Mar-2016 Steve Miketa

Update file mode


Revision tags: v2.0.1, v2.0.0, v2.0.0beta1
# fcf23101 21-Sep-2015 Nikita Popov

Fix autoloader path in php-parse

Need to go up another directory...


# c8898df3 21-Sep-2015 Nikita Popov

Add php-parse as composer bin

Renaming from php-parse.php to just php-parse to follow the usual
conventions.

Not tested.