首页 | 本学科首页   官方微博 | 高级检索  
     

消除C++分析器分析过程中的二义性
引用本文:连舒明,金茂忠,刘超,郭聪宾.消除C++分析器分析过程中的二义性[J].微计算机信息,2006,22(30):159-161.
作者姓名:连舒明  金茂忠  刘超  郭聪宾
作者单位:100083,北京,北京航空航天大学计算机学院
基金项目:国家高技术研究发展计划(863计划)
摘    要:C++语言的文法十分复杂,采用LL(k)或者LR(k)分析方法都面临二义性问题。另外,内联函数分析,名字查找,模板分析,需要采用特殊的方法解决,本文主要阐述了这些问题,并结合实际的分析器JLParser提出了其解决方法。

关 键 词:分析器  二义性  模板
文章编号:1008-0570(2006)10-3-0159-03
修稿时间:2005年1月5日

Resolution of Ambiguity in Parsing C++
Lian Shuming,Jin Maozhong,Liu Chao,Guo Congbin.Resolution of Ambiguity in Parsing C++[J].Control & Automation,2006,22(30):159-161.
Authors:Lian Shuming  Jin Maozhong  Liu Chao  Guo Congbin
Abstract:There are many difficulties in parsing C++, and the language cannot be readily approximated with an LL or LR grammar. Moreover, there exsits lots of ambiguities in inline function analysis, name lookup, and template analysis. Some special methods are needed to deal with all these problems. The parsing ambiguities are studied and the solutions to them with our practical parser tech- nique are introduced.
Keywords:Parser  Ambiguity  Template
本文献已被 CNKI 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号