Hengle / jcpp

The C Preprocessor as a Java library

Home Page:http://www.anarres.org/projects/jcpp/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

Documentation

About

The C Preprocessor as a Java library

http://www.anarres.org/projects/jcpp/

License:Apache License 2.0


Languages

Language:Java 98.7%Language:C 0.7%Language:Shell 0.4%Language:C++ 0.1%Language:HTML 0.0%