Title :
A grammar for spreadsheet formulas evaluated on two large datasets
Author :
Efthimia Aivaloglou;David Hoepelman;Felienne Hermans
Author_Institution :
Software Engineering Research Group, Delft University of Technology, Mekelweg 4, 2628 CD Delft, the Netherlands
Abstract :
Spreadsheets are ubiquitous in the industrial world and often perform a role similar to other computer programs, which makes them interesting research targets. However, there does not exist a reliable grammar that is concise enough to facilitate formula parsing and analysis and to support research on spreadsheet codebases. This paper presents a grammar for spreadsheet formulas that is compatible with the spreadsheet formula language, is compact enough to feasibly implement with a parser generator, and produces parse trees aimed at further manipulation and analysis. We evaluate the grammar against more than one million unique formulas extracted from the well known EUSES and Enron spreadsheet datasets, successfully parsing 99.99%. Additionally, we utilize the grammar to analyze these datasets and measure the frequency of usage of language features in spreadsheet formulas. Finally, we identify smelly constructs and uncommon cases in the syntax of formulas.
Keywords :
"Grammar","Arrays","Generators","Production","Indexes","Spreadsheet programs","Syntactics"
Conference_Titel :
Source Code Analysis and Manipulation (SCAM), 2015 IEEE 15th International Working Conference on
DOI :
10.1109/SCAM.2015.7335408