Abstract
It is observed that programmers encounter cryptic compiler error messages that are difficult to comprehend and hence inconvenient to resolve. Programmers spend a lot of their time in syntax error corrections. There is no universal tool that emits helpful descriptive error messages for all languages. In this paper, we propose a language-agnostic framework that detects syntax errors and produces error messages that are easy to comprehend. It allows domain experts to specify error messages for each type of syntax error. We use a novel approach wherein our framework provides the functionality of customizing error messages by providing a template for specifying the same. This makes it easier for novice programmers to understand the cause of compile-time errors in any programming language. Our results confirm that programmers prefer the enhanced error messages emitted by our framework over the standard error messages.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Similar content being viewed by others
References
Kummerfeld, Sarah K, Kay J (2003) The neglected battle fields of syntax errors. In: Proceedings of the fifth Australasian conference on Computing education, vol 20
Eclipse IDE (2009) Eclipse IDE. www.eclipse.org. Last visited 2009
IntelliJ IDEA (2011) The most intelligent Java IDE. JetBrains. Dostupné z: https://www.jetbrains.com/idea/. Cited 23 Feb 2016
Javier Traver V (2010) On compiler error messages: what they say and what they mean. Adv Hum-Comput Interact Article ID 602570:26. https://doi.org/10.1155/2010/602570
Becker BA et al (2019) Compiler error messages considered unhelpful: the landscape of text-based programming error message research. In: Proceedings of the working group reports on innovation and technology in computer science education, pp 177–210
Becker BA et al (2018) Fix the first, ignore the rest: Dealing with multiple compiler error messages. In: Proceedings of the 49th ACM technical symposium on computer science education
Brown P (1983) Error messages: the neglected area of the man/machine interface. Commun ACM 26(4):246–249
Marceau G, Fisler K, Krishnamurthi S (2011) Mind your language: on novices’ interactions with error messages. In: Proceedings of the symposium on new ideas, new paradigms, and reflections on programming and software, pp 3–18
Sahil B, Rishabh S (2018) Automated correction for syntax errors in programming assignments using recurrent neural networks
Kelley AK (2018) A system for classifying and clarifying python syntax errors for educational purposes. Dissertation. Massachusetts Institute of Technology
Beazley D (2001) PLY (Python lex-yacc). See http://www.dabeaz.com/ply
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2021 The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd.
About this paper
Cite this paper
Nagalakshmi, M., Sharma, T., Kumar, N.S. (2021). Flexible Language-Agnostic Framework To Emit Informative Compile-Time Error Messages. In: Smys, S., Balas, V.E., Kamel, K.A., Lafata, P. (eds) Inventive Computation and Information Technologies. Lecture Notes in Networks and Systems, vol 173. Springer, Singapore. https://doi.org/10.1007/978-981-33-4305-4_62
Download citation
DOI: https://doi.org/10.1007/978-981-33-4305-4_62
Published:
Publisher Name: Springer, Singapore
Print ISBN: 978-981-33-4304-7
Online ISBN: 978-981-33-4305-4
eBook Packages: Intelligent Technologies and RoboticsIntelligent Technologies and Robotics (R0)