An empirical evaluation of Lex/Yacc and ANTLR parser generation tools

Author:

Ortin FranciscoORCID,Quiroga JoseORCID,Rodriguez-Prieto Oscar,Garcia Miguel

Abstract

Parsers are used in different software development scenarios such as compiler construction, data format processing, machine-level translation, and natural language processing. Due to the widespread usage of parsers, there exist different tools aimed at automizing their generation. Two of the most common parser generation tools are the classic Lex/Yacc and ANTLR. Even though ANTLR provides more advanced features, Lex/Yacc is still the preferred choice in many university courses. There exist different qualitative comparisons of the features provided by both approaches, but no study evaluates empirical features such as language implementor productivity and tool simplicity, intuitiveness, and maintainability. In this article, we present such an empirical study by conducting an experiment with undergraduate students of a Software Engineering degree. Two random groups of students implement the same language using a different parser generator, and we statistically compare their performance with different measures. Under the context of the academic study conducted, ANTLR has shown significant differences for most of the empirical features measured.

Funder

Ministerio de Ciencia, Innovación y Universidades

Universidad de Oviedo

Publisher

Public Library of Science (PLoS)

Subject

Multidisciplinary

Reference45 articles.

1. ANTLR: A Predicated-LL(k) Parser Generator;TJ Parr;Software: Practice and Experience,1995

2. Jarble. Comparison of parser generators; 2022. https://en.wikipedia.org/wiki/Comparison_of_parser_generators.

3. Friedrich AC. CMT, C Maintenance Tool, research manual. Carlow Institute of Technology, Ireland; 2009. C00132716.

Cited by 7 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Advancing Model-Driven Reverse Engineering: Leveraging Antlr4 for Efficient Source Language Parsing and Model Generation;2024

2. Compiler For Mathematical Operations Using English Like Sentences;2023 7th International Conference on Computation System and Information Technology for Sustainable Solutions (CSITSS);2023-11-02

3. Comparison of Leading Language Parsers – ANTLR, JavaCC, SableCC, Tree-sitter, Yacc, Bison;2023 13th International Conference on Software Technology and Engineering (ICSTE);2023-10-27

4. Source Code Statement Classification using ANTLR and Random Forest;2023 International Seminar on Intelligent Technology and Its Applications (ISITIA);2023-07-26

5. Teaching language processing with the PAMOJA framework;Science of Computer Programming;2023-07

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3