Abstract. Open Source C/C++ parsers that support contemporary C/C++, can recover from errors, include a preprocessor, and that are actively main- tained, are rare. This paper describes how to use the parser contained in the Eclipse C/C++ development tooling (CDT) as a library. Such parser provides not only the abstract syntax tree of the parsed le but also the semantics, i.e., type information and bindings. The ndings described in this paper provide to practitioners a C++ parser without the need to hassle with parser generators, or to write a parser themselves. The authors used the same approach also to obtain Java and JavaScript parsers with comparable attributes.
Using the Eclipse C/C++ Development Tooling as a Robust, Fully Functional, Actively Maintained, Open Source C++ Parser
Succi G
2012
Abstract
Abstract. Open Source C/C++ parsers that support contemporary C/C++, can recover from errors, include a preprocessor, and that are actively main- tained, are rare. This paper describes how to use the parser contained in the Eclipse C/C++ development tooling (CDT) as a library. Such parser provides not only the abstract syntax tree of the parsed le but also the semantics, i.e., type information and bindings. The ndings described in this paper provide to practitioners a C++ parser without the need to hassle with parser generators, or to write a parser themselves. The authors used the same approach also to obtain Java and JavaScript parsers with comparable attributes.I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.