Changeset View
Changeset View
Standalone View
Standalone View
support/xhpast/parser.y
Show First 20 Lines • Show All 2,743 Lines • ▼ Show 20 Lines | T_NEW class_name_reference ctor_arguments { | ||||
NTYPE($1, n_NEW); | NTYPE($1, n_NEW); | ||||
$1->appendChild($2); | $1->appendChild($2); | ||||
$1->appendChild($3); | $1->appendChild($3); | ||||
$$ = $1; | $$ = $1; | ||||
} | } | ||||
| T_NEW T_CLASS ctor_arguments extends_from implements_list | | T_NEW T_CLASS ctor_arguments extends_from implements_list | ||||
'{' class_statement_list '}' { | '{' class_statement_list '}' { | ||||
$$ = NNEW(n_CLASS_DECLARATION); | $$ = NNEW(n_CLASS_DECLARATION); | ||||
$$->appendChild($2); | $$->appendChild(NNEW(n_EMPTY)); | ||||
$$->appendChild(NNEW(n_EMPTY)); | $$->appendChild(NNEW(n_EMPTY)); | ||||
$$->appendChild($4); | $$->appendChild($4); | ||||
$$->appendChild($5); | $$->appendChild($5); | ||||
$$->appendChild(NEXPAND($6, $7, $8)); | $$->appendChild(NEXPAND($6, $7, $8)); | ||||
NMORE($$, $8); | NMORE($$, $8); | ||||
NTYPE($1, n_NEW); | NTYPE($1, n_NEW); | ||||
$1->appendChild($$); | $1->appendChild($$); | ||||
Show All 26 Lines |