Computer Science Colloquium


Techniques for Enhancing Compiler Error Messages

Sana Algaraibeh
New Mexico Tech

Date: Monday August 21, 2023
Time: 5:30pm MDT
Room: Zoom zoom.us, Meeting ID 942 3255 5926, passcode 171681
            The talk will be held in Cramer Hall Room 203.

   Abstract:

Bottom-up parsing technology advanced and automated static analysis of source code efficiently but raised the challenge of maintaining understandable communication between compilers and humans. Reporting errors in the source code in human-understandable language is essential for software development process efficiency and especially for students learning programming. This study presents a new solution for compiler error messages, 3-phase parsing techniques that overcome some limitations of LR parsers in reporting friendly error messages. We evaluated the new design with a human-subject control experiment. The experiment compares the quality of syntax error messages of an educationally customized compiler EduCC with error messages produced by GNU GCC and Microsoft Visual C++. EduCC implements the 3-phase parsing techniques for a subset of C++ language. The participants were 53 students in Computer Science and Engineering at the New Mexico Institute of Mining and Technology. In a within-group experiment design, the participants had to find errors in and fix erroneous C++ programs. The experiment shows that 3-phase parsing techniques improved the quality of syntax error messages.

Bio:

Sana Algaraibeh received her Ph.D. in Computer Science from the University of Idaho. She joined the faculty at the New Mexico Institute of Mining and Technology as a Computer Science instructor in 2022. Prior to that, she worked in academia for 14+ years as a lecturer, trainer, team leader, instructional designer, and CS department chair at universities in Jordan and Saudi Arabia. She teaches Internet and Web Programming, Object-Oriented Programming, Python for Data Science, Algorithms and Data Structures, and Introduction to Programming. Her area of scholarship is computer science education. She is interested in developing computational solutions integrated with modern pedagogy.