Errorrecoveryinpredictiveparsing.pptVIP

  • 3
  • 0
  • 约1.65千字
  • 约 5页
  • 2017-04-11 发布于上海
  • 举报
Errorrecoveryinpredictiveparsing

Error recovery in predictive parsing An error is detected during the predictive parsing when the terminal on top of the stack does not match the next input symbol, or when nonterminal A on top of the stack, a is the next input symbol, and parsing table entry M[A,a] is empty. Panic-mode error recovery is based on the idea of skipping symbols on the input until a token in a selected set of synchronizing tokens. How to select synchronizing set? Place all symbols in FOLLOW(A) into the synchronizing set for nonterminal A. If we skip tokens until an element of FOLLOW(A) is seen and pop A from the st

文档评论(0)

1亿VIP精品文档

相关文档