(6.2)--Samuels Ch5_2编译原理与实践英文版.pptVIP

  • 5
  • 0
  • 约3.95万字
  • 约 172页
  • 2023-11-23 发布于陕西
  • 举报

(6.2)--Samuels Ch5_2编译原理与实践英文版.ppt

Chapter 5Bottom –Up ParsingLR(0) Parsing An LR(0) item ( or item) of a context-free grammar is a production choice with a distinguished position in its right-hand side.We shall indicate this distinguished position by a period.If A - α is a production choice, and if β and γ are any two strings of symbols such that βγ = α, then A - β.γ is LR(0) item.CompilerSamuel2005@126.com2LR(0) Items S’ - . SS’ - S .S - . ( S ) SS - ( . S ) SS - ( S . ) SS - ( S ) . SS - ( S ) S .S - .CompilerSamuel2005@126.com3Example 5.3S’ - SS - ( S ) S | εThere are eight items E’ - . EE’ - E .E - . E + nE - E . + nE -

文档评论(0)

1亿VIP精品文档

相关文档