Skip to content

Commit

Permalink
release 0.0.10
Browse files Browse the repository at this point in the history
  • Loading branch information
ichiriac committed Jun 21, 2016
1 parent 69f3aec commit 439af51
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ T_ECHO T_CONSTANT_ENCAPSED_STRING ;
[ [ 'string', '"Hello World"' ] ] ] ] ]
```

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

# Use it

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

# Releases

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

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

# Misc

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "php-parser",
"version": "0.0.9",
"version": "0.0.10",
"description": "PHP parser",
"main": "main.js",
"scripts": {
Expand Down
7 changes: 7 additions & 0 deletions test/parser/function.parser
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
Test function parser
--PASS--
function aa($a, $b = MY_CONST, $c = A | B) { }
--PASS--
function htmlspecialchars(
string $string,
int $flags = ENT_COMPAT | ENT_HTML401,
string $encoding = 'ini_get("default_charset")',
bool $double_encode = true
): string {}
--FAIL--
function aa();
--PASS ??--
Expand Down

0 comments on commit 439af51

Please sign in to comment.