Generating robust parsers using island grammars
The DOI matches its Crossref record; 12 of the 12 references it cites were found in a registry or an index.
Abstract
Source model extraction, the automated extraction of information from system artifacts, is a common phase in reverse engineering tools. One of the major challenges of this phase is creating extractors that can deal with irregularities in the artifacts that are typical for the reverse engineering domain (for example, syntactic errors, incomplete source code, language dialects and embedded languages). The paper proposes a solution in the form of island grammars, a special kind of grammar that combines the detailed specification possibilities of grammars with the liberal behavior of lexical approaches. We show how island grammars can be used to generate robust parsers that combine the accuracy of syntactical analysis with the speed, flexibility and tolerance usually only found in lexical analysis. We conclude with a discussion of the development of MANGROVE, a generator for source model extractors based on island grammars and describe its application to a number of case studies.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
McCabe, T. J. (1976) · IEEE Transactions on Software Engineering · doi:10.1109/tse.1976.233837 · Cited by 6,059
Wall, L., & Loukides, M. (1991) · Cited by 783
Partial parsing via finite-state cascades
ABNEY, S. (1996) · Natural Language Engineering · doi:10.1017/s1351324997001599 · Cited by 478
Aho, A. V., Kernighan, B. W., & Weinberger, P. J. (1988) · CERN Document Server (European Organization for Nuclear Research) · Cited by 405
The Asf+Sdf Meta-environment: A Component-Based Language Development Environment
van den Brand, M. G. J., van Deursen, A., Heering, J., de Jong, H. A., de Jonge, M., Kuipers, T., Klint, P., Moonen, L., Olivier, P. A., Scheerder, J., et al. (2001) · Lecture Notes in Computer Science · doi:10.1007/3-540-45306-7_26 · Cited by 323
Self-citationStructured testing: a testing methodology using the cyclomatic complexity metric
Wallace, D. R., Watson, A. H., & McCabe, T. J. (1996) · doi:10.6028/nist.sp.500-235 · Cited by 312
A framework for source code search using program patterns
Paul, S., & Prakash, A. (1994) · IEEE Transactions on Software Engineering · doi:10.1109/32.295894 · Cited by 180
Languages and machines: An introduction to the theory of computer science
(1988) · Computer Languages · doi:10.1016/0096-0551(88)90018-5 · Cited by 144
Lightweight lexical source model extraction
Murphy, G. C., & Notkin, D. S. (1996) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/234426.234441 · Cited by 137
Building documentation generators
Arie Van Deursen, A., & Kuipers, T. (1999) · IEEE International Conference on Software Maintenance (ICSM) · doi:10.1109/icsm.1999.792497 · Cited by 108
Cited by
Comparison and evaluation of code clone detection techniques and tools: A qualitative approach
Roy, C. K., Cordy, J. R., & Koschke, R. (2009) · Science of Computer Programming · doi:10.1016/j.scico.2009.02.007 · Cited by 1,001
Bettenburg, N., Just, S., Schröter, A., Weiss, C., Premraj, R., & Zimmermann, T. (2008) · Proceedings of the 16th ACM SIGSOFT International Symposium on Foundations of software engineering · doi:10.1145/1453101.1453146 · Cited by 617
Roy, C. K., & Cordy, J. R. (2008) · 2008 16th IEEE International Conference on Program Comprehension · doi:10.1109/icpc.2008.41 · Cited by 533
“Island grammars also provide robustness [27] by allowing us to use semi-parisng for the language (or dialect) of interest.”
BackgroundJava quality assurance by detecting code smells
van Emden, E., & Moonen, L. (2003) · Ninth Working Conference on Reverse Engineering, 2002. Proceedings. · doi:10.1109/wcre.2002.1173068 · Cited by 379
Self-citationThe TXL source transformation language
Cordy, J. R. (2006) · Science of Computer Programming · doi:10.1016/j.scico.2006.04.002 · Cited by 358
Zimmermann, T., Premraj, R., Bettenburg, N., Just, S., Schroter, A., & Weiss, C. (2010) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2010.63 · Cited by 337
Palomba, F., Bavota, G., Penta, M. D., Fasano, F., Oliveto, R., & Lucia, A. D. (2018) · Empirical Software Engineering · doi:10.1007/s10664-017-9535-z · Cited by 305
Toward an engineering discipline for grammarware
Klint, P., Lämmel, R., & Verhoef, C. (2005) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/1072997.1073000 · Cited by 271
Survey of Research on Software Clones
Koschke, R. (2007) · DROPS (Schloss Dagstuhl – Leibniz Center for Informatics) · doi:10.4230/dagsemproc.06301.13 · Cited by 236
Cross-Project Transfer Representation Learning for Vulnerable Function Discovery
Lin, G., Zhang, J., Luo, W., Pan, L., Xiang, Y., De Vel, O., & Montague, P. (2018) · IEEE Transactions on Industrial Informatics · doi:10.1109/tii.2018.2821768 · Cited by 217
“With “CodeSensor,” which is a robust parser implemented by [25] based on the concept of island grammars [15], we can extract ASTs from individual source files or even from fragments of function code without the presence of dependent libraries.”
MethodExtracting structural information from bug reports
Bettenburg, N., Premraj, R., Zimmermann, T., & Kim, S. (2008) · Proceedings of the 2008 international working conference on Mining software repositories · doi:10.1145/1370750.1370757 · Cited by 173
“We base our filter on an island parsing approach [8]: initially, the complete input is treated as water.”
Chucky: exposing missing checks in source code for vulnerability discovery
Yamaguchi, F., Wressnegger, C., Gascon, H., & Rieck, K. (2013) · Proceedings of the 2013 ACM SIGSAC conference on Computer & communications security - CCS '13 · doi:10.1145/2508859.2516665 · Cited by 161
“Starting from the identifier corresponding to a selected source or sink, the graph is traversed in top-down as well as bottom-up direction to discover all related identifiers.”
BackgroundNew Frontiers of Reverse Engineering
Canfora, G., & Di Penta, M. (2007) · Future of Software Engineering (FOSE '07) · doi:10.1109/fose.2007.15 · Cited by 159
How do API changes trigger stack overflow discussions? a study on the Android SDK
Linares-Vásquez, M., Bavota, G., Di Penta, M., Oliveto, R., & Poshyvanyk, D. (2014) · Proceedings of the 22nd International Conference on Program Comprehension · doi:10.1145/2597008.2597155 · Cited by 146
Metadata
- Authors
- Moonen, L.
- Venue
- Proceedings Eighth Working Conference on Reverse Engineering
- Publisher
- IEEE Comput. Soc
- Published
- 2002-11-13
- Pages
- 13-22
- ISSN
- 1095-1350 (ISSN-L)
- OpenAlex
- W1850047186
- Cited by
- 252
- References
- 12
- FWCI
- 10.72
- Type
- conference paper
- Language
- en
- Open access
- closed
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.