Static Source Code Analysis using OCL
DOI:
https://doi.org/10.14279/tuj.eceasst.15.174Abstract
The majority of artifacts created during software development are representations of programs in textual syntax. Although graphical descriptions are becoming more widespread, source code is still indispensable. To obtain programs that behave correctly and adhere to given coding conventions, source code must be analyzed - preferably using automated tools. Building source code analyzers has a long tradition and various mature tools exist to check code written in conventional languages, such as Java or C. As new languages emerge (e.g., Domain Specific Languages) these tools can not be applied and building a tool for each language does not seem feasible either. This paper investigates how meta models for textual languages and the Object Constraint Language can enable generic static source code analysis for arbitrary languages. The presented approach is evaluated using three languages (Java, SQL and a DSL for state machines).Downloads
Published
2008-12-01
How to Cite
[1]
M. Seifert and R. Samlaus, “Static Source Code Analysis using OCL”, eceasst, vol. 15, Dec. 2008.
Issue
Section
Articles