Skip to content

Commit

Permalink
Fix in parser calling methods with parameters by reference
Browse files Browse the repository at this point in the history
  • Loading branch information
phalcon committed Aug 13, 2014
1 parent ffbdf9f commit 0becb97
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 26 deletions.
2 changes: 1 addition & 1 deletion ext/php_test.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#define PHP_TEST_VERSION "1.0.0"
#define PHP_TEST_EXTNAME "test"
#define PHP_TEST_AUTHOR "Zephir Team and contributors"
#define PHP_TEST_ZEPVERSION "0.4.4a"
#define PHP_TEST_ZEPVERSION "0.4.5a"
#define PHP_TEST_DESCRIPTION "Description test for<br/>Test Extension"

typedef struct _zephir_struct_test {
Expand Down
2 changes: 1 addition & 1 deletion ext/test/internalclasses.zep.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions ext/test/oo.zep.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

37 changes: 19 additions & 18 deletions ext/test/regexdna.zep.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions parser/parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,5 +115,4 @@
#define XX_DOUBLE 115
#define XX_TRUE 116
#define XX_FALSE 117
#define XX_XX_T_BITWISE_AND 118
#define XX_CBLOCK 119
#define XX_CBLOCK 118
4 changes: 2 additions & 2 deletions parser/parser.lemon
Original file line number Diff line number Diff line change
Expand Up @@ -2772,12 +2772,12 @@ xx_call_parameter(R) ::= IDENTIFIER(I) COLON xx_common_expr(E) . {
}

/* func(&expr) */
xx_call_parameter(R) ::= XX_T_BITWISE_AND xx_common_expr(E) . {
xx_call_parameter(R) ::= BITWISE_AND xx_common_expr(E) . {
R = xx_ret_call_parameter(NULL, E, status->scanner_state, 1);
}

/* func(name: &expr) */
xx_call_parameter(R) ::= IDENTIFIER(I) COLON XX_T_BITWISE_AND xx_common_expr(E) . {
xx_call_parameter(R) ::= IDENTIFIER(I) COLON BITWISE_AND xx_common_expr(E) . {
R = xx_ret_call_parameter(I, E, status->scanner_state, 0);
}

Expand Down

0 comments on commit 0becb97

Please sign in to comment.