Using the Eclipse C/C++ Development Tooling as a Robust, Fully Functional, Actively Maintained, Open Source C++ Parser

  • Danila Piatov
  • Andrea Janes
  • Alberto Sillitti
  • Giancarlo Succi
Part of the IFIP Advances in Information and Communication Technology book series (IFIPAICT, volume 378)

Abstract

Open Source parsers that support contemporary C/C++, can recover from errors, include a preprocessor, and that are actively maintained, are rare. This work describes how to use the parser contained in the Eclipse C/C++ Development Tooling (CDT) as a Java library. Such parser provides not only the abstract syntax tree of the parsed file but also the semantics, i.e., type information and bindings. The authors used the same approach to obtain Java and JavaScript parsers.

Copyright information

© IFIP International Federation for Information Processing 2012

Authors and Affiliations

  • Danila Piatov
    • 1
  • Andrea Janes
    • 1
  • Alberto Sillitti
    • 1
  • Giancarlo Succi
    • 1
  1. 1.CASEFree University of BolzanoItaly

Personalised recommendations