亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? lr_parser.java

?? 有關JDBC的使用一些編程實例,有關與數據庫連接的代碼
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
   *  we begin to discard tokens in attempt to get past the point of error   *  to a point where we can continue parsing.  After each token, we attempt    *  to "parse ahead" though the buffered lookahead tokens.  The "parse ahead"   *  process simulates that actual parse, but does not modify the real    *  parser's configuration, nor execute any actions. If we can  parse all    *  the stored tokens without error, then the recovery is considered a    *  success.  Once a successful recovery point is determined, we do an   *  actual parse over the stored input -- modifying the real parse    *  configuration and executing all actions.  Finally, we return the the    *  normal parser to continue with the overall parse.   *   * @param debug should we produce debugging messages as we parse.   */  protected boolean error_recovery(boolean debug)    throws java.lang.Exception    {      if (debug) debug_message("# Attempting error recovery");      /* first pop the stack back into a state that can shift on error and 	 do that shift (if that fails, we fail) */      if (!find_recovery_config(debug))	{	  if (debug) debug_message("# Error recovery fails");	  return false;	}      /* read ahead to create lookahead we can parse multiple times */      read_lookahead();      /* repeatedly try to parse forward until we make it the required dist */      for (;;)	{	  /* try to parse forward, if it makes it, bail out of loop */	  if (debug) debug_message("# Trying to parse ahead");	  if (try_parse_ahead(debug))	    {	      break;	    }	  /* if we are now at EOF, we have failed */	  if (lookahead[0].sym == EOF_sym()) 	    {	      if (debug) debug_message("# Error recovery fails at EOF");	      return false;	    }	  /* otherwise, we consume another token and try again */	  if (debug) 	  debug_message("# Consuming token #" + cur_err_token().sym);	  restart_lookahead();	}      /* we have consumed to a point where we can parse forward */      if (debug) debug_message("# Parse-ahead ok, going back to normal parse");      /* do the real parse (including actions) across the lookahead */      parse_lookahead(debug);      /* we have success */      return true;    }  /*. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .*/  /** Determine if we can shift under the special error symbol out of the    *  state currently on the top of the (real) parse stack.    */  protected boolean shift_under_error()    {      /* is there a shift under error symbol */      return get_action(((symbol)stack.peek()).parse_state, error_sym()) > 0;    }  /*. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .*/  /** Put the (real) parse stack into error recovery configuration by    *  popping the stack down to a state that can shift on the special    *  error symbol, then doing the shift.  If no suitable state exists on    *  the stack we return false    *   * @param debug should we produce debugging messages as we parse.   */  protected boolean find_recovery_config(boolean debug)    {      token error_token;      int act;      if (debug) debug_message("# Finding recovery state on stack");      /* pop down until we can shift under error token */      while (!shift_under_error())	{	  /* pop the stack */	  if (debug) 	    debug_message("# Pop stack by one, state was # " +	                  ((symbol)stack.peek()).parse_state);          stack.pop();		  tos--;	  /* if we have hit bottom, we fail */	  if (stack.empty()) 	    {	      if (debug) debug_message("# No recovery state found on stack");	      return false;	    }	}      /* state on top of the stack can shift under error, find the shift */      act = get_action(((symbol)stack.peek()).parse_state, error_sym());      if (debug) 	{	  debug_message("# Recover state found (#" + 			((symbol)stack.peek()).parse_state + ")");	  debug_message("# Shifting on error to state #" + (act-1));	}      /* build and shift a special error token */      error_token = new token(error_sym());      error_token.parse_state = act-1;      stack.push(error_token);      tos++;      return true;    }  /*. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .*/  /** Lookahead tokens used for attempting error recovery "parse aheads". */  protected token lookahead[];  /** Position in lookahead input buffer used for "parse ahead". */  protected int lookahead_pos;  /*. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .*/  /** Read from input to establish our buffer of "parse ahead" lookahead    *  symbols.    */  protected void read_lookahead() throws java.lang.Exception    {      /* create the lookahead array */      lookahead = new token[error_sync_size()];      /* fill in the array */      for (int i = 0; i < error_sync_size(); i++)	{	  lookahead[i] = cur_token;	  cur_token = scan();	}      /* start at the beginning */      lookahead_pos = 0;    }  /*. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .*/  /** Return the current lookahead in our error "parse ahead" buffer. */  protected token cur_err_token() { return lookahead[lookahead_pos]; }  /*. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .*/  /** Advance to next "parse ahead" input symbol. Return true if we have    *  input to advance to, false otherwise.    */  protected boolean advance_lookahead()    {      /* advance the input location */      lookahead_pos++;      /* return true if we didn't go off the end */      return lookahead_pos < error_sync_size();    }  /*. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .*/  /** Reset the parse ahead input to one token past where we started error    *  recovery (this consumes one new token from the real input).    */  protected void restart_lookahead() throws java.lang.Exception    {      /* move all the existing input over */      for (int i = 1; i < error_sync_size(); i++)	lookahead[i-1] = lookahead[i];      /* read a new token into the last spot */      cur_token = scan();      lookahead[error_sync_size()-1] = cur_token;      /* reset our internal position marker */      lookahead_pos = 0;    }  /*. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .*/  /** Do a simulated parse forward (a "parse ahead") from the current    *  stack configuration using stored lookahead input and a virtual parse   *  stack.  Return true if we make it all the way through the stored    *  lookahead input without error. This basically simulates the action of    *  parse() using only our saved "parse ahead" input, and not executing any    *  actions.   *   * @param debug should we produce debugging messages as we parse.   */  protected boolean try_parse_ahead(boolean debug)    throws java.lang.Exception    {      int act;      short lhs, rhs_size;      /* create a virtual stack from the real parse stack */      virtual_parse_stack vstack = new virtual_parse_stack(stack);      /* parse until we fail or get past the lookahead input */      for (;;)	{	  /* look up the action from the current state (on top of stack) */	  act = get_action(vstack.top(), cur_err_token().sym);	  /* if its an error, we fail */	  if (act == 0) return false;	  /* > 0 encodes a shift */	  if (act > 0)	    {	      /* push the new state on the stack */	      vstack.push(act-1);	      if (debug) debug_message("# Parse-ahead shifts token #" + 		       cur_err_token().sym + " into state #" + (act-1));	      /* advance simulated input, if we run off the end, we are done */	      if (!advance_lookahead()) return true;	    }	  /* < 0 encodes a reduce */	  else	    {	      /* if this is a reduce with the start production we are done */	      if ((-act)-1 == start_production()) 		{		  if (debug) debug_message("# Parse-ahead accepts");		  return true;		}	      /* get the lhs symbol and the rhs size */	      lhs = production_tab[(-act)-1][0];	      rhs_size = production_tab[(-act)-1][1];	      /* pop handle off the stack */	      for (int i = 0; i < rhs_size; i++)		vstack.pop();	      if (debug) 		debug_message("# Parse-ahead reduces: handle size = " + 	          rhs_size + " lhs = #" + lhs + " from state #" + vstack.top());	      /* look up goto and push it onto the stack */	      vstack.push(get_reduce(vstack.top(), lhs));	      if (debug) 		debug_message("# Goto state #" + vstack.top());	    }	}    }  /*. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .*/  /** Parse forward using stored lookahead symbols.  In this case we have   *  already verified that parsing will make it through the stored lookahead   *  symbols and we are now getting back to the point at which we can hand   *  control back to the normal parser.  Consequently, this version of the   *  parser performs all actions and modifies the real parse configuration.     *  This returns once we have consumed all the stored input or we accept.   *   * @param debug should we produce debugging messages as we parse.   */  protected void parse_lookahead(boolean debug)    throws java.lang.Exception    {      /* the current action code */      int act;      /* the symbol/stack element returned by a reduce */      symbol lhs_sym;      /* information about production being reduced with */      short handle_size, lhs_sym_num;      /* restart the saved input at the beginning */      lookahead_pos = 0;      if (debug) 	{	  debug_message("# Reparsing saved input with actions");	  debug_message("# Current token is #" + cur_err_token().sym);	  debug_message("# Current state is #" + 			((symbol)stack.peek()).parse_state);	}      /* continue until we accept or have read all lookahead input */      while(!_done_parsing)	{	  /* current state is always on the top of the stack */	  /* look up action out of the current state with the current input */	  act = 	    get_action(((symbol)stack.peek()).parse_state, cur_err_token().sym);	  /* decode the action -- > 0 encodes shift */	  if (act > 0)	    {	      /* shift to the encoded state by pushing it on the stack */	      cur_err_token().parse_state = act-1;	      if (debug) debug_shift(cur_err_token());	      stack.push(cur_err_token());	      tos++;	      /* advance to the next token, if there is none, we are done */	      if (!advance_lookahead()) 		{		  if (debug) debug_message("# Completed reparse");		  /* scan next token so we can continue parse */		  cur_token = scan();		  /* go back to normal parser */		  return;		}	      	      if (debug) 		debug_message("# Current token is #" + cur_err_token().sym);	    }	  /* if its less than zero, then it encodes a reduce action */	  else if (act < 0)	    {	      /* perform the action for the reduce */	      lhs_sym = do_action((-act)-1, this, stack, tos);	      /* look up information about the production */	      lhs_sym_num = production_tab[(-act)-1][0];	      handle_size = production_tab[(-act)-1][1];	      if (debug) debug_reduce((-act)-1, lhs_sym_num, handle_size);	      /* pop the handle off the stack */	      for (int i = 0; i < handle_size; i++)		{		  stack.pop();		  tos--;		}	      	      /* look up the state to go to from the one popped back to */	      act = get_reduce(((symbol)stack.peek()).parse_state, lhs_sym_num);	      /* shift to that state */	      lhs_sym.parse_state = act;	      stack.push(lhs_sym);	      tos++;	       	      if (debug) debug_message("# Goto state #" + act);	    }	  /* finally if the entry is zero, we have an error 	     (shouldn't happen here, but...)*/	  else if (act == 0)	    {	      report_fatal_error("Syntax error", null);	      return;	    }	}    }  /*-----------------------------------------------------------*/};

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产曰批免费观看久久久| 日韩一区二区三区四区| 成人av动漫在线| 国产精品白丝jk黑袜喷水| 精品一区二区在线免费观看| 精品一区二区三区欧美| 麻豆视频观看网址久久| 美腿丝袜在线亚洲一区| 久久精品国产亚洲aⅴ| 美日韩一级片在线观看| 美女国产一区二区| 狠狠色综合播放一区二区| 久久国产生活片100| 激情深爱一区二区| 国产一区二区美女| 成人免费视频一区| 色域天天综合网| 欧美色图在线观看| 欧美一级专区免费大片| 久久久久久久久一| 国产精品免费免费| 亚洲乱码国产乱码精品精98午夜| 亚洲激情网站免费观看| 午夜av一区二区| 久久99久久精品欧美| 国产传媒欧美日韩成人| 99国产精品久久久久| 在线精品视频一区二区三四| 91精品国产美女浴室洗澡无遮挡| 日韩一区二区三区视频在线观看| 久久午夜国产精品| 亚洲欧洲精品成人久久奇米网| 自拍偷拍欧美精品| 日本中文字幕一区二区视频| 国产综合久久久久久鬼色 | 美脚の诱脚舐め脚责91| 国产精品自在欧美一区| 99热这里都是精品| 91 com成人网| 国产欧美日韩在线看| 亚洲综合av网| 九九视频精品免费| 91丝袜高跟美女视频| 制服丝袜亚洲网站| 国产精品人人做人人爽人人添| 亚洲第一激情av| 国产精品一区二区免费不卡| 一本色道久久加勒比精品| 日韩一区二区三| 日韩一区日韩二区| 裸体一区二区三区| 一本大道av一区二区在线播放| 日韩一区二区免费高清| 亚洲免费视频中文字幕| 精品一区二区三区在线视频| 91国偷自产一区二区三区成为亚洲经典| 69堂精品视频| 亚洲同性同志一二三专区| 日本午夜精品视频在线观看| 色综合亚洲欧洲| 精品国产一区二区精华| 夜夜爽夜夜爽精品视频| 国产在线看一区| 欧美日韩久久久一区| 中文字幕亚洲电影| 国内精品伊人久久久久av一坑| 精品视频在线看| 国产女同互慰高潮91漫画| 美女爽到高潮91| 欧美性猛片aaaaaaa做受| 国产精品色在线观看| 精品亚洲aⅴ乱码一区二区三区| 在线观看成人免费视频| 中文字幕精品一区二区精品绿巨人| 日韩精品欧美精品| 91电影在线观看| 亚洲欧洲日韩女同| 成人性生交大片免费看视频在线| 亚洲美女偷拍久久| 粉嫩一区二区三区在线看| 日韩欧美一二三四区| 亚洲国产三级在线| 91官网在线观看| 亚洲色图视频网| www.成人在线| 国产日韩欧美一区二区三区综合| 青青草91视频| 欧美一区二区三区在线看| 亚洲一二三四区| 91久久精品网| 一区二区三区成人在线视频| 91麻豆国产福利精品| 欧美国产激情二区三区| 国产一区91精品张津瑜| 精品国产污污免费网站入口 | 亚洲国产欧美日韩另类综合 | 亚洲婷婷综合久久一本伊一区| 国产激情视频一区二区三区欧美| 精品国产青草久久久久福利| 久久精品国产网站| 精品国产免费一区二区三区香蕉| 美女mm1313爽爽久久久蜜臀| 日韩美女视频在线| 激情都市一区二区| xnxx国产精品| 国产精品一区二区你懂的| 久久久国产精华| 成人网页在线观看| 国产精品国产三级国产普通话三级| 国产成人av影院| 最新热久久免费视频| 99精品国产一区二区三区不卡| 中文字幕一区日韩精品欧美| 91日韩在线专区| 亚洲欧美区自拍先锋| 欧美视频在线不卡| 日本成人中文字幕| 精品国产免费一区二区三区香蕉| 国产精品一品二品| 国产精品乱码人人做人人爱 | 欧美日韩亚洲国产综合| 日本不卡视频在线观看| 精品国产一二三| 成人小视频在线观看| 亚洲欧洲综合另类| 欧美日韩不卡在线| 久久99精品国产| 欧美激情在线一区二区三区| 色域天天综合网| 蜜桃久久精品一区二区| 国产三级精品三级在线专区| 97久久超碰国产精品| 午夜精品福利一区二区三区av| 日韩精品一区在线| 成人爽a毛片一区二区免费| 亚洲图片自拍偷拍| 欧美成人高清电影在线| 成人动漫一区二区| 视频精品一区二区| 国产欧美一区二区精品性色超碰| 色哟哟一区二区在线观看| 免费在线观看精品| 中文字幕制服丝袜成人av| 欧美日韩不卡在线| 国产suv精品一区二区6| 亚洲国产综合91精品麻豆| 精品国产一二三| 欧美在线看片a免费观看| 国产在线乱码一区二区三区| 一区二区三区在线播放| 精品国产乱码久久久久久夜甘婷婷| 成人午夜电影小说| 免费精品视频最新在线| 亚洲免费三区一区二区| 26uuu欧美| 精品视频在线免费看| 国产999精品久久久久久绿帽| 亚洲午夜三级在线| 国产精品网站在线观看| 日韩一区二区视频| 在线观看免费成人| 成人美女在线视频| 久久99精品国产91久久来源| 一区二区三区精品久久久| 久久久久久久久一| 7777精品伊人久久久大香线蕉经典版下载 | 国产精品国产三级国产aⅴ入口| 欧美电影影音先锋| 色哟哟一区二区| 成人一区二区三区在线观看| 蜜臀精品一区二区三区在线观看 | 一本久久精品一区二区| 国产老妇另类xxxxx| 五月激情综合色| 亚洲视频综合在线| 亚洲国产精品黑人久久久| 日韩一区二区在线观看视频播放| 在线中文字幕不卡| 成人午夜伦理影院| 国产制服丝袜一区| 另类的小说在线视频另类成人小视频在线 | 日韩在线一二三区| 亚洲精品福利视频网站| 国产精品福利在线播放| 久久久青草青青国产亚洲免观| 欧美精品一级二级| 欧洲精品在线观看| 色一情一伦一子一伦一区| a亚洲天堂av| 成人av一区二区三区| 久色婷婷小香蕉久久| 美国一区二区三区在线播放| 日韩激情中文字幕| 亚洲va天堂va国产va久| 亚洲一区二区三区中文字幕在线| 中文字幕佐山爱一区二区免费| 中文字幕成人在线观看| 日本一区二区三区视频视频| 久久久久久久久久久久电影| 精品少妇一区二区三区免费观看 |