检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
机构地区:[1]宿迁学院计算机科学系 [2]江苏大学计算机科学与通信工程学院
出 处:《长春工程学院学报(自然科学版)》2013年第3期104-107,共4页Journal of Changchun Institute of Technology:Natural Sciences Edition
基 金:国家自然科学基金项目(61005017);国家自然科学基金项目(61202110);校级教改研究项目(2011YJG08)
摘 要:采用自动生成工具ANTLR的LL(*)文法对编译器前端进行构造,所涉及的关键问题有:文法的左递归、算符的结合性、算符优先级及语法断言。针对上述关键问题进行研究,给出了具体可行的解决方案。实验结果表明:该方案有效地解决了基于ANTLR的代码编译问题,具有良好的可操作性和实用性。The compiler front end is structured by the LL ( * ) grammar of ANTLR automatic generation tool. Its key problems include the left recursive of the grammar, the association of the operators, the priori- ty of the operators, and the predicate of the grammar. The feasible solution is obtained through the research on the above key problems. The experiment results show that the problems of the code compile based on ANTLR are effectively solved by this solution,which has the good operability and practicality.
分 类 号:TP39[自动化与计算机技术—计算机应用技术]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.249