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

18Citations
Citations of this article
22Readers
Mendeley users who have this article in their library.
Get full text

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.

Cite

CITATION STYLE

APA

Ortin, F., Quiroga, J., Rodriguez-Prieto, O., & Garcia, M. (2022). An empirical evaluation of Lex/Yacc and ANTLR parser generation tools. PLoS ONE, 17(3 March). https://doi.org/10.1371/journal.pone.0264326

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free