Skip to content

Commit 439af51

Browse files
committed
release 0.0.10
1 parent 69f3aec commit 439af51

File tree

3 files changed

+17
-8
lines changed

3 files changed

+17
-8
lines changed

README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ T_ECHO T_CONSTANT_ENCAPSED_STRING ;
3232
[ [ 'string', '"Hello World"' ] ] ] ] ]
3333
```
3434

35-
https://tonicdev.com/57082d37ded58c1100e6a6f6/57082d37ded58c1100e6a6f7
35+
Try it online (demo) :
36+
https://tonicdev.com/ichiriac/php-parser
3637

3738
# Use it
3839

@@ -65,13 +66,14 @@ If you run into problems with a test, run it with the cli and add the `--debug`
6566

6667
# Releases
6768

68-
Current version is under developpement, all tokens are not yet implemented, but consider that the lexer sucessfully pass the parsing of ZF2 and Laravel, and many aspects of php are implemented.
69+
Current version is under developpement, but consider that the lexer sucessfully pass the parsing of ZF2, Laravel, Symfony, and many aspects of php5 and php7 are implemented.
6970

70-
* 0.0.9 : const (value as expr) bugfix
71-
* 0.0.8 : all tokens are passed on ZF2 (many fixes)
72-
* 0.0.7 : isset, unset, try, catch, finally, fix T_STATIC, fix T_NEW with a dynamic var name, improve tests
73-
* 0.0.6 : Improve tests, implements arrays & new statements
74-
* 0.0.5 : Implement traits
71+
* 0.0.10 : bugfixes and php7 implementation
72+
* 0.0.9 : const (value as expr) bugfix
73+
* 0.0.8 : all tokens are passed on ZF2 (many fixes)
74+
* 0.0.7 : isset, unset, try, catch, finally, fix T_STATIC, fix T_NEW with a dynamic var name, improve tests
75+
* 0.0.6 : Improve tests, implements arrays & new statements
76+
* 0.0.5 : Implement traits
7577

7678
# Misc
7779

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "php-parser",
3-
"version": "0.0.9",
3+
"version": "0.0.10",
44
"description": "PHP parser",
55
"main": "main.js",
66
"scripts": {

test/parser/function.parser

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
Test function parser
22
--PASS--
33
function aa($a, $b = MY_CONST, $c = A | B) { }
4+
--PASS--
5+
function htmlspecialchars(
6+
string $string,
7+
int $flags = ENT_COMPAT | ENT_HTML401,
8+
string $encoding = 'ini_get("default_charset")',
9+
bool $double_encode = true
10+
): string {}
411
--FAIL--
512
function aa();
613
--PASS ??--

0 commit comments

Comments
 (0)