TY - GEN
T1 - A grammar for spreadsheet formulas evaluated on two large datasets
AU - Aivaloglou, Efthimia
AU - Hoepelman, David
AU - Hermans, Felienne
PY - 2015/11/20
Y1 - 2015/11/20
N2 - 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.
AB - 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.
UR - http://www.scopus.com/inward/record.url?scp=84963619581&partnerID=8YFLogxK
UR - http://www.scopus.com/inward/citedby.url?scp=84963619581&partnerID=8YFLogxK
U2 - 10.1109/SCAM.2015.7335408
DO - 10.1109/SCAM.2015.7335408
M3 - Conference contribution
AN - SCOPUS:84963619581
T3 - 2015 IEEE 15th International Working Conference on Source Code Analysis and Manipulation, SCAM 2015 - Proceedings
SP - 121
EP - 130
BT - 2015 IEEE 15th International Working Conference on Source Code Analysis and Manipulation, SCAM 2015 - Proceedings
PB - Institute of Electrical and Electronics Engineers Inc.
T2 - IEEE 15th International Working Conference on Source Code Analysis and Manipulation, SCAM 2015
Y2 - 27 September 2015 through 28 September 2015
ER -