Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hadronized/rcpp

A Rust implementation of the C Preprocessor
https://github.com/hadronized/rcpp

Last synced: about 1 month ago
JSON representation

A Rust implementation of the C Preprocessor

Awesome Lists containing this project

README

        

# A Rust implementation of the C Preprocessor

This crate is a Rust implementation of _cpp_, following the official specification of
the preprocessor [here](https://gcc.gnu.org/onlinedocs/cpp).

## Motivation

Original need occurred in the [glsl] crate, that needed a pure Rust implementation of a slightly
different _cpp_ implementation. That motivation is the reason why _rcpp_ is designed to be
extensible around the preprocessor directives.

## More on the project

The C Preprocessor.

The preprocessor is responsible in evaluating an input string to produce a preprocessed output
string. The preprocessor recognize directives as well as built-ins (such as `defined`,
`___FILE__`, `__LINE__`, etc.).

[glsl]: https://github.com/phaazon/glsl