编译原理-上下无关文法和文法分析.pptVIP

  • 39
  • 0
  • 约1.4万字
  • 约 42页
  • 2017-08-11 发布于重庆
  • 举报
编译原理-上下无关文法和文法分析.ppt

Introduction Parsing is the task of determining the syntax, or structure, of a program. It is also called syntax analysis. The syntax of a programming language is usually given by the grammar rules of a context-free grammar. The rules of context-free grammar are recursive. Data structures representing the syntactic structure are also recursive – a parse tree or syntax tree. The Parsing Process Usually, the sequence of tokens is not an explicit input parameter, but the parser calls a scanner procedure such as getToken to fetch the next token from the input as it is needed during the parser proc

文档评论(0)

1亿VIP精品文档

相关文档