The application of JavaCC to develop a C/C++ preprocessor
1999; Association for Computing Machinery; Volume: 7; Issue: 3 Linguagem: Inglês
10.1145/333630.333633
ISSN1931-0161
AutoresGiancarlo Succi, Raymond Wong,
Tópico(s)Real-Time Systems Scheduling
ResumoThe commonly available software metrics-extraction tools for C/C++ depend on commercial preprocessors to preprocess the source file before being input into the analyzers. The following paper introduces a Java compiler generator called JavaCC and the application of the generator to develop a Java-based preprocessor for C/C++. Some technical features to the development of preprocessor are also mentioned, such as (1) handling of rescanning in preprocessing with LL(k) parsers, (2) managing conditional compiling with the state-based features of the lexical analyzer in JavaCC, and (3) resolving macro replacement and expansion with parsers.
Referência(s)