Skip to main content

Flexible Language-Agnostic Framework To Emit Informative Compile-Time Error Messages

  • Conference paper
  • First Online:
Inventive Computation and Information Technologies

Part of the book series: Lecture Notes in Networks and Systems ((LNNS,volume 173))

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 169.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 219.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others

References

  1. 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

    Google Scholar 

  2. Eclipse IDE (2009) Eclipse IDE. www.eclipse.org. Last visited 2009

  3. IntelliJ IDEA (2011) The most intelligent Java IDE. JetBrains. Dostupné z: https://www.jetbrains.com/idea/. Cited 23 Feb 2016

  4. https://www.tiobe.com/tiobe-index/

  5. 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

  6. 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

    Google Scholar 

  7. 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

    Google Scholar 

  8. Brown P (1983) Error messages: the neglected area of the man/machine interface. Commun ACM 26(4):246–249

    Article  Google Scholar 

  9. 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

    Google Scholar 

  10. Sahil B, Rishabh S (2018) Automated correction for syntax errors in programming assignments using recurrent neural networks

    Google Scholar 

  11. Kelley AK (2018) A system for classifying and clarifying python syntax errors for educational purposes. Dissertation. Massachusetts Institute of Technology

    Google Scholar 

  12. Beazley D (2001) PLY (Python lex-yacc). See http://www.dabeaz.com/ply

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Malathy Nagalakshmi .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2021 The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd.

About this paper

Check for updates. Verify currency and authenticity via CrossMark

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

Publish with us

Policies and ethics