libraries/sqlite/parse.c
static void yy_syntax_error(
  yyParser *yypParser,           /* The parser */
  int yymajor,                   /* The major type of the error token */
  sqlite3ParserTOKENTYPE yyminor         /* The minor type of the error token */
){
  sqlite3ParserARG_FETCH
  sqlite3ParserCTX_FETCH
#define TOKEN yyminor
/************ Begin %syntax_error code ****************************************/
#line 33 "parse.y"

  UNUSED_PARAMETER(yymajor);  /* Silence some compiler warnings */
  if( TOKEN.z[0] ){
    sqlite3ErrorMsg(pParse, "near \"%T\": syntax error", &TOKEN);
  }else{
    sqlite3ErrorMsg(pParse, "incomplete input");
  }
#line 5082 "parse.c"
/************ End %syntax_error code ******************************************/
  sqlite3ParserARG_STORE /* Suppress warning about unused %extra_argument variable */
  sqlite3ParserCTX_STORE
}
/*
** The following code executes when a syntax error first occurs.
*/
The following code executes when a syntax error first occurs.
The following code executes when a syntax error first occurs .
static void yy_syntax_error(
  yyParser *yypParser,           
  int yymajor,                   
  sqlite3ParserTOKENTYPE yyminor         
){
  sqlite3ParserARG_FETCH
  sqlite3ParserCTX_FETCH
#define TOKEN yyminor
#line 33 "parse.y"
  UNUSED_PARAMETER(yymajor);  
  if( TOKEN.z[0] ){
    sqlite3ErrorMsg(pParse, "near \"%T\": syntax error", &TOKEN);
  }else{
    sqlite3ErrorMsg(pParse, "incomplete input");
  }
#line 5082 "parse.c"
  sqlite3ParserARG_STORE 
  sqlite3ParserCTX_STORE
}
static void yy_syntax_error ( yyParser * yypParser , int yymajor , sqlite3ParserTOKENTYPE yyminor ) { sqlite3ParserARG_FETCH sqlite3ParserCTX_FETCH #define TOKEN  yyminor #line  33 "parse.y" UNUSED_PARAMETER ( yymajor ) ; if ( TOKEN . z [ 0 ] ) { sqlite3ErrorMsg ( pParse , " \" \" " , & TOKEN ) ; } else { sqlite3ErrorMsg ( pParse , " " ) ; } #line  5082 "parse.c" sqlite3ParserARG_STORE sqlite3ParserCTX_STORE }
The following code executes when a syntax error first occurs.
The following code executes when a syntax error first occurs .
/* The parser */ /* The major type of the error token */ /* The minor type of the error token */ /************ Begin %syntax_error code ****************************************/ /* Silence some compiler warnings */ /************ End %syntax_error code ******************************************/ /* Suppress warning about unused %extra_argument variable */