Comparison of Leading Language Parsers – ANTLR, JavaCC, SableCC, Tree-sitter, Yacc, Bison
Authors:
- 27 October 2023
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 7-13
Abstract
Software engineering applications in domains like embedded systems and health care have increased exponentially during the last few years. Developing, analyzing, and customization of languages is one of the core software engineering aspects. This usually involves lexical, syntactical, and semantic operations, technically termed parsing. For this, several parsers have been introduced in state-of-the-art. However, due to diverse features, selecting a parser for a particular operation during software engineering applications is always problematic. In this article, we identified six leading parsers (i.e., ANTLR, JavaCC, SableCC, Tree-sitter, Yacc, and Bison) from the state-of-the-art. Furthermore, we also identified significant parser features to perform meaningful comparative analysis. Results indicate that ANTLR and JavaCC provide enhanced parsing features, such as the parsing algorithm and the extended grammar notation. However, JavaCC is suitable for simple grammar definition, whereas ANTLR allows specifying complex grammar with multiple alternative paths. The findings of this article are highly beneficial for researchers and practitioners while selecting the right parser to perform specific software engineering tasks.Keywords
This publication has 23 references indexed in Scilit:
- Tokenizing, POS Tagging, Lemmatizing and Parsing UD 2.0 with UDPipe2017
- Scalable framework for parsing: from Fortress to JavaScriptSoftware: Practice and Experience, 2015
- Adaptive LL(*) parsingACM SIGPLAN Notices, 2014
- A novel approach for link context extraction using Bison parser2014
- LL(*)ACM SIGPLAN Notices, 2011
- ANTLRWorks: an ANTLR grammar development environmentSoftware: Practice and Experience, 2008
- Tatoo2006
- Generalized Bottom Up Parsers With Reduced Stack ActivityThe Computer Journal, 2005
- Generating LR syntax error messages from examplesACM Transactions on Programming Languages and Systems, 2003
- A bounty of accessible language translation toolsACM SIGCSE Bulletin, 2001