-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #124 from zephir-lang/development
1.4.0
- Loading branch information
Showing
21 changed files
with
1,532 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.3.8 | ||
1.4.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<package packagerversion="1.10.5" version="2.0" xmlns="http://pear.php.net/dtd/package-2.0" | ||
xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0 http://pear.php.net/dtd/tasks-1.0.xsd http://pear.php.net/dtd/package-2.0 http://pear.php.net/dtd/package-2.0.xsd"> | ||
<name>zephir_parser</name> | ||
<channel>pecl.php.net</channel> | ||
<summary>Zephir code parser.</summary> | ||
<description>Zephir Parser is a code parser, delivered as a C extension for the PHP language.</description> | ||
<lead> | ||
<name>Anton Vasiliev</name> | ||
<user>jeckerson</user> | ||
<email>[email protected]</email> | ||
<active>yes</active> | ||
</lead> | ||
<date>2021-09-18</date> | ||
<time>11:00:00</time> | ||
<version> | ||
<release>1.4.0</release> | ||
<api>1.4.0</api> | ||
</version> | ||
<stability> | ||
<release>stable</release> | ||
<api>stable</api> | ||
</stability> | ||
<license uri="https://github.com/zephir-lang/php-zephir-parser/blob/development/LICENSE">MIT</license> | ||
<notes> | ||
Sat, Sep 18, 2021 - Zephir Parser 1.4.0 | ||
|
||
= New features: | ||
|
||
- Fixed issue #120: Add support for `mixed` type | ||
- Fixed issue #118: Add support for `yield` statement | ||
</notes> | ||
<contents> | ||
<dir name="/"> | ||
<dir name="parser"> | ||
<file name="parser.c" role="src"/> | ||
<file name="scanner.c" role="src"/> | ||
|
||
<file name="parser.h" role="src"/> | ||
<file name="scanner.h" role="src"/> | ||
<file name="xx.h" role="src"/> | ||
<file name="zephir.h" role="src"/> | ||
</dir> | ||
|
||
<file name="config.m4" role="src"/> | ||
<file name="config.w32" role="src"/> | ||
<file name="zephir_parser.c" role="src"/> | ||
<file name="zephir_parser.h" role="src"/> | ||
<file name="CHANGELOG.md" role="doc"/> | ||
<file name="CODE_OF_CONDUCT.md" role="doc"/> | ||
<file name="LICENSE" role="doc"/> | ||
<file name="NO_WARRANTY" role="doc"/> | ||
</dir> | ||
</contents> | ||
<dependencies> | ||
<required> | ||
<php> | ||
<min>7.0.0</min> | ||
<max>8.0.99</max> | ||
</php> | ||
<pearinstaller> | ||
<min>1.10</min> | ||
</pearinstaller> | ||
</required> | ||
</dependencies> | ||
<providesextension>zephir_parser</providesextension> | ||
<extsrcrelease/> | ||
</package> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
--TEST-- | ||
Parameter type 'int' | ||
--SKIPIF-- | ||
<?php include(__DIR__ . '/../../skipif.inc'); ?> | ||
--FILE-- | ||
<?php | ||
$code =<<<ZEP | ||
function test(int value) { } | ||
ZEP; | ||
|
||
$ir = zephir_parse_file($code, '(eval code)'); | ||
var_dump($ir); | ||
?> | ||
--EXPECT-- | ||
array(1) { | ||
[0]=> | ||
array(6) { | ||
["type"]=> | ||
string(8) "function" | ||
["name"]=> | ||
string(4) "test" | ||
["parameters"]=> | ||
array(1) { | ||
[0]=> | ||
array(9) { | ||
["type"]=> | ||
string(9) "parameter" | ||
["name"]=> | ||
string(5) "value" | ||
["const"]=> | ||
int(0) | ||
["data-type"]=> | ||
string(3) "int" | ||
["mandatory"]=> | ||
int(0) | ||
["reference"]=> | ||
int(0) | ||
["file"]=> | ||
string(11) "(eval code)" | ||
["line"]=> | ||
int(1) | ||
["char"]=> | ||
int(25) | ||
} | ||
} | ||
["file"]=> | ||
string(11) "(eval code)" | ||
["line"]=> | ||
int(1) | ||
["char"]=> | ||
int(9) | ||
} | ||
} |
Oops, something went wrong.