pike.git / src / language.yacc

version» Context lines:

pike.git/src/language.yacc:1014:    {    if ($10) free_node($10);    }    | modifiers optional_attributes simple_type optional_constant name_list ';'    | inheritance {}    | import {}    | constant {}    | modifiers named_class { free_node($2); }    | modifiers enum { free_node($2); }    | typedef {} -  | static_assertion {} +  | static_assertion expected_semicolon {}    | error TOK_LEX_EOF    {    reset_type_stack();    yyerror("Missing ';'.");    yyerror("Unexpected end of file");    }    | error ';'    {    reset_type_stack();    yyerrok;
pike.git/src/language.yacc:1046:    $<number>$=THIS_COMPILATION->lex.pragmas;    THIS_COMPILATION->lex.pragmas|=$1;    }    program    close_brace_or_eof    {    THIS_COMPILATION->lex.pragmas=$<number>3;    }    ;    - static_assertion: TOK_STATIC_ASSERT '(' expr0 ',' expr0 ')' expected_semicolon + static_assertion: TOK_STATIC_ASSERT '(' expr0 ',' expr0 ')'    {    Pike_compiler->init_node =    mknode(F_COMMA_EXPR, Pike_compiler->init_node,    mkefuncallnode("_Static_assert",    mknode(F_ARG_LIST, $3, $5)));    }    ;      optional_dot_dot_dot: TOK_DOT_DOT_DOT { $$=1; }    | TOK_DOT_DOT
pike.git/src/language.yacc:1935:         statements: { $$=0; }    | statements statement    {    $$ = mknode(F_COMMA_EXPR, $1, mkcastnode(void_type_string, $2));    }    ;      statement_with_semicolon: unused2 expected_semicolon -  | static_assertion { $$ = 0; } +     ;      normal_label_statement: statement_with_semicolon    | import { $$=0; }    | cond    | return    | local_constant { $$=0; }    | block    | break expected_semicolon    | continue expected_semicolon
pike.git/src/language.yacc:3639:    {    $$ = mknewintnode(0);    }    ;      expr5: literal_expr    | catch    | gauge    | typeof    | sscanf +  | static_assertion { $$ = mknewintnode(0); }    | lambda    | implicit_modifiers anon_class { $$ = $2; }    | implicit_modifiers enum { $$ = $2; }    | apply    | expr4 open_bracket_with_line_info '*' ']'    {    $$=mknode(F_AUTO_MAP_MARKER, $1, 0);    COPY_LINE_NUMBER_INFO($$, $2);    free_node ($2);    }