递归下降解析器:如何找到FIRST,FOLLOW和PREDICT集? [英] Recursive descent parser: how to find the FIRST, FOLLOW, and PREDICT sets?

查看:212
本文介绍了递归下降解析器:如何找到FIRST,FOLLOW和PREDICT集?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在寻找语法时,我正在寻找有关RDP的FIRST,FOLLOW和PREDICT集的良好解释.

I'm looking for a good explanation of the definitions of the FIRST, FOLLOW, and PREDICT sets of a RDP when given a grammar.

推荐答案

尝试使用编程语言实用程序,作者是Michael L. Scott(摩根·考夫曼).第2章介绍了解析.第2.2.3节介绍了递归下降解析;第2.2.3节介绍了递归下降解析. 2.2.5中的 first follow 设置.

Try Programming Language Pragmatics, by Michael L. Scott (Morgan Kaufmann). Parsing is covered in chapter 2. Recursive-descent parsing is described in section 2.2.3; first and follow sets in 2.2.5.

这篇关于递归下降解析器:如何找到FIRST,FOLLOW和PREDICT集?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆