Changeset View
Changeset View
Standalone View
Standalone View
cddl/contrib/opensolaris/lib/libdtrace/common/dt_grammar.y
Show First 20 Lines • Show All 323 Lines • ▼ Show 20 Lines | probe_specifiers { | ||||
$$ = dt_node_clause($1, NULL, NULL); | $$ = dt_node_clause($1, NULL, NULL); | ||||
yybegin(YYS_CLAUSE); | yybegin(YYS_CLAUSE); | ||||
} | } | ||||
| probe_specifiers '{' statement_list '}' { | | probe_specifiers '{' statement_list '}' { | ||||
$$ = dt_node_clause($1, NULL, $3); | $$ = dt_node_clause($1, NULL, $3); | ||||
yybegin(YYS_CLAUSE); | yybegin(YYS_CLAUSE); | ||||
} | } | ||||
| probe_specifiers DT_TOK_DIV expression DT_TOK_EPRED { | | probe_specifiers DT_TOK_DIV expression DT_TOK_EPRED { | ||||
dnerror($3, D_SYNTAX, "expected actions { } following " | $$ = dt_node_clause($1, $3, NULL); | ||||
"probe description and predicate\n"); | yybegin(YYS_CLAUSE); | ||||
} | } | ||||
| probe_specifiers DT_TOK_DIV expression DT_TOK_EPRED | | probe_specifiers DT_TOK_DIV expression DT_TOK_EPRED | ||||
'{' statement_list '}' { | '{' statement_list '}' { | ||||
$$ = dt_node_clause($1, $3, $6); | $$ = dt_node_clause($1, $3, $6); | ||||
yybegin(YYS_CLAUSE); | yybegin(YYS_CLAUSE); | ||||
} | } | ||||
; | ; | ||||
▲ Show 20 Lines • Show All 544 Lines • Show Last 20 Lines |