Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/hadronized/rcpp
- Owner: hadronized
- Created: 2020-03-28T14:49:08.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-03-28T16:57:48.000Z (over 4 years ago)
- Last Synced: 2024-02-22T18:26:29.423Z (10 months ago)
- Language: Rust
- Size: 11.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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