Skip to content

Commit

Permalink
Improved namespace aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
andresgutierrez committed May 31, 2015
1 parent 1a0a0a3 commit 6dec5d1
Show file tree
Hide file tree
Showing 17 changed files with 3,111 additions and 3,046 deletions.
191 changes: 94 additions & 97 deletions ext/phalcon/mvc/model.zep.c

Large diffs are not rendered by default.

450 changes: 228 additions & 222 deletions ext/phalcon/mvc/model/query.zep.c

Large diffs are not rendered by default.

81 changes: 39 additions & 42 deletions ext/phalcon/mvc/model/query/builder.zep.c

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions ext/phalcon/mvc/model/query/generate
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ sed s/YY/PP/g scanner.c > xx && mv -f xx scanner.c
sed s/yy/pp/g scanner.c > xx && mv -f xx scanner.c
sed s/YY/PP/g parser.c > xx && mv -f xx parser.c
sed s/yy/pp/g parser.c > xx && mv -f xx parser.c
sed s/"define TOKEN"/"define PPTOKEN"/g parser.c > xx && mv -f xx parser.c
1,089 changes: 532 additions & 557 deletions ext/phalcon/mvc/model/query/parser.c

Large diffs are not rendered by default.

12 changes: 2 additions & 10 deletions ext/phalcon/mvc/model/query/parser.lemon
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ static zval *phql_ret_func_call(phql_parser_token *name, zval *arguments, zval *
if (arguments) {
add_assoc_zval(ret, "arguments", arguments);
}

if (distinct) {
add_assoc_zval(ret, "distinct", distinct);
}
Expand Down Expand Up @@ -849,7 +849,7 @@ where_clause(R) ::= . {
R = NULL;
}

%destructor order_clause { zephir_safe_zval_ptr_dtor($$); }
%destructor order_clause { zephir_safe_zval_ptr_dtor($$); }

order_clause(R) ::= ORDER BY order_list(O) . {
R = O;
Expand Down Expand Up @@ -1185,14 +1185,6 @@ expr(R) ::= SPLACEHOLDER(P) . {

%destructor qualified_name { zval_ptr_dtor(&$$); }

qualified_name(R) ::= IDENTIFIER(A) COLON IDENTIFIER(B) DOT IDENTIFIER(C) . {
R = phql_ret_qualified_name(A, B, C);
}

qualified_name(R) ::= IDENTIFIER(A) COLON IDENTIFIER(B) . {
R = phql_ret_qualified_name(A, NULL, B);
}

qualified_name(R) ::= IDENTIFIER(A) DOT IDENTIFIER(B) . {
R = phql_ret_qualified_name(NULL, A, B);
}
Expand Down
Loading

0 comments on commit 6dec5d1

Please sign in to comment.