Bottomupparsing培训课件.pptVIP

  • 10
  • 0
  • 约8.78千字
  • 约 31页
  • 2019-05-29 发布于湖北
  • 举报
Bottom-up parsing Goal of parser : build a derivation Top-down parser : build a derivation by working from the start symbol towards the input. Builds parse tree from root to leaves Builds leftmost derivation Bottom-up parser : build a derivation by working from the input back toward the start symbol Builds parse tree from leaves to root Builds reverse rightmost derivation Bottom-up parsing The parser looks for a substring of the parse trees frontier... ...that matches the rhs of a production and ...whose reduction to the non-terminal on the lhs represents on step along the reverse of a rightm

文档评论(0)

1亿VIP精品文档

相关文档