Title: Robust multilingual parsing using island grammars
Abstract:Any attempt at automated software analysis or modification must be preceded by a comprehension step, i.e. parsing. This task, while often considered straightforward, can in fact be very challenging fo...Any attempt at automated software analysis or modification must be preceded by a comprehension step, i.e. parsing. This task, while often considered straightforward, can in fact be very challenging for some source code. Files that make up web applications serve as an example of such difficult-to-parse artifacts, for two reasons. First, these files often contain several programming languages at once, sometimes with widely varying syntaxes, and intermingled at the statement level. Second, the code routinely contains syntax errors. Understanding such files calls for a robust parser that can handle multiple languages simultaneously.An approach to creating such a parser, based on the concept of island grammars, is presented here. Island grammars have been used in the past for robust parsing and lightweight analysis of software. Some of the features of these grammars make them uniquely fit for parsing multiple languages simultaneously.Read More
Publication Year: 2003
Publication Date: 2003-10-06
Language: en
Type: article
Access and Citation
Cited By Count: 57
AI Researcher Chatbot
Get quick answers to your questions about the article from our AI researcher chatbot