Commit Graph

19 Commits

Author SHA1 Message Date
Laytan Laats
68ac672368 build: replace VKCOM import with laytan import 2023-03-31 16:50:08 +02:00
Makhnev Petr
e16671724e
php8.1: added intersection types support (#29) 2022-06-26 03:31:29 +03:00
Makhnev Petr
af394e9eb0
php8.1: added enum (#12) 2021-07-31 19:44:09 +03:00
Makhnev Petr
8c35b0aef1
php8.1: added readonly modifier (#6) 2021-07-31 18:00:21 +03:00
Makhnev Petr
72cd222aeb
all: renamed github.com/z7zmey/php-parser with github.com/VKCOM/php-parser 2021-07-30 21:01:34 +03:00
Makhnev Petr
049ce7ddc6
PHP 8 (#1)
PHP 8 Update

- nullsafe operator (?->)
- Remove (real) cast
- Named arguments
- Remove (unset) cast
- Remove {} access
- match expression
- Union types in type hints and static typehint
- Block catch without variable
- Trailing comma in parameter lists
- throw can be used as an expression
- Concatenation precedence
- Declaring properties in the constructor
- Attributes
- Names in the namespace are treated as a single token
- Trailing comma in closure use list
- Check that ::class on object works
- Deferencable changes and arbitrary expressions in new/instanceof
2021-07-30 20:53:27 +03:00
Vadym Slizov
8064d940f0
[refactoring] update Token structure 2020-12-08 01:54:05 +02:00
Vadym Slizov
20a42da7c9
[refactoring] remove general Node struct 2020-12-08 00:04:12 +02:00
Vadym Slizov
97747c5ac0 [refactoring] remove scanner token 2020-08-17 20:39:10 +03:00
Vadym Slizov
394092269a [refactoring] store expr parenthesis 2020-08-09 22:40:55 +02:00
Vadym Slizov
4aae540aad [refactoring] store argument list parenthesis 2020-08-09 01:37:09 +02:00
Vadym Slizov
45464654c6 [refactoring] store halt_compiler tokens 2020-08-03 23:22:08 +02:00
Vadym Slizov
a70e34d726 [refactoring] remove unused token positions 2020-08-03 22:52:12 +02:00
Vadym Slizov
b7d32b07bf [refactoring] store colon as free-floating token 2020-08-03 22:42:21 +02:00
Vadym Slizov
feebb017c4 [refactoring] update use ast structure 2020-08-03 21:22:53 +02:00
Vadym Slizov
8417e7d6d2 [refactoring] dumper: print node position and tokens 2020-07-04 20:59:26 +03:00
Vadym Slizov
4971309b75 refactor printer 2020-05-17 22:56:32 +03:00
Vadym Slizov
6a84d58ee6 refactor php7 2020-05-13 00:16:36 +03:00
Vadym Slizov
60f171bfa1 refactor token structure 2020-05-10 08:47:13 +03:00