summaryrefslogtreecommitdiffstats
path: root/README.md
blob: fe891e4ef4c38942ea16d0e3ba30b842961992a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31

Introduction

The C Preprocessor is an interesting standard. It appears to be derived from the de-facto behaviour of the first preprocessors, and has evolved over the years. Implementation is therefore difficult.

JCPP is a complete, compliant, standalone, pure Java implementation of the C preprocessor. It is intended to be of use to people writing C-style compilers in Java using tools like sablecc, antlr, JLex, CUP and so forth (although if you aren't using sablecc, you need your head examined).

This project has has been used to successfully preprocess much of the source code of the GNU C library. As of version 1.2.5, it can also preprocess the Apple Objective C library.

JogAmp Branch

This branch is modified for JogAmp to supply GlueGen with JCPP.

This branch is only intended as a submodule for GlueGen and hence must be build from within GlueGen.

Original JCPP Version

Documentation