pike.git / src / language.yacc

version» Context lines:

pike.git/src/language.yacc:1:   /* -*- c -*-   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: language.yacc,v 1.353 2004/12/30 13:41:08 grubba Exp $ + || $Id: language.yacc,v 1.354 2005/01/27 09:17:38 grubba Exp $   */      %pure_parser      %token TOK_ARROW      /*    * Basic value pushing    */   %token TOK_CONSTANT TOK_FLOAT TOK_STRING
pike.git/src/language.yacc:3274:    yyerror("Unexpected end of file.");    free_node ($2);    }    | expr4 open_bracket_with_line_info error ';'    {$$=$1; yyerror("Missing ']'."); free_node ($2);}    | expr4 open_bracket_with_line_info error '}'    {$$=$1; yyerror("Missing ']'."); free_node ($2);}    | expr4 open_bracket_with_line_info error ')'    {$$=$1; yyerror("Missing ']'."); free_node ($2);}    | open_paren_with_line_info comma_expr2 ')' -  {$$=$2; COPY_LINE_NUMBER_INFO($$, $1); free_node ($1);} +  { +  $$=$2; +  if ($$) { +  COPY_LINE_NUMBER_INFO($$, $1); +  } +  free_node ($1); +  }    | open_paren_with_line_info '{' expr_list close_brace_or_missing ')'    {    $$=mkefuncallnode("aggregate",$3);    COPY_LINE_NUMBER_INFO($$, $1);    free_node ($1);    }    | open_paren_with_line_info    open_bracket_with_line_info /* Only to avoid shift/reduce conflicts. */    m_expr_list close_bracket_or_missing ')'    {