Changeset View
Changeset View
Standalone View
Standalone View
support/xhpast/parser.y
| Show First 20 Lines • Show All 1,081 Lines • ▼ Show 20 Lines | |||||
| ; | ; | ||||
| return_type: | return_type: | ||||
| %empty { | %empty { | ||||
| $$ = NNEW(n_EMPTY); | $$ = NNEW(n_EMPTY); | ||||
| } | } | ||||
| | ':' '?' type { | | ':' '?' type { | ||||
| $$ = NNEW(n_DECLARATION_RETURN); | $$ = NNEW(n_DECLARATION_RETURN); | ||||
| $$->appendChild($2); | $$->appendChild(NTYPE($2, n_STRING)); | ||||
| $$->appendChild($3); | $$->appendChild($3); | ||||
| } | } | ||||
| | ':' type { | | ':' type { | ||||
| $$ = NNEW(n_DECLARATION_RETURN); | $$ = NNEW(n_DECLARATION_RETURN); | ||||
| $$->appendChild(NNEW(n_EMPTY)); | $$->appendChild(NNEW(n_EMPTY)); | ||||
| $$->appendChild($2); | $$->appendChild($2); | ||||
| } | } | ||||
| ; | ; | ||||
| ▲ Show 20 Lines • Show All 1,675 Lines • Show Last 20 Lines | |||||