2014compiler课件Ch4_2章节(476KB).pptVIP

  • 7
  • 0
  • 约8.65千字
  • 约 26页
  • 2018-04-01 发布于未知
  • 举报
Chapter 4 Top-Down Parsing LL(1) Parsing LL(1)分析 Computer Science Technology Harbin Engineering University Introduction No longer often used Simple scheme with explicit stack Prelude for more powerful and complex bottom-up algorithms First “L” – the input is processed from left to right Second “L” – leftmost derivation 1 – one lookahead symbol Compiler * LL(1) Parsing Basic Method 基本方法 Push the start symbol onto the stack. Generate(生成): Replace a nonterminal on the top of the stack by one of the choices in the grammar rule for that nonterminal. The replacement string from the BNF must be

文档评论(0)

1亿VIP精品文档

相关文档