4 ms·
For anyone interested in examples of software where true preprocessor standard conformance is essential, check out https://github.com/rofl0r/order-pp https://g
by foundry27 7y ago
For anyone interested in examples of software where true preprocessor standard conformance is essential, check out https://github.com/rofl0r/order-pp https://github.com/rofl0r/order-pp. It’s a functional programming language built on the C preprocessor that can essentially output any sequence of preprocessing tokens, with high-level language features like closures, lexical scoping, first-class functions, reflection, an eval primitive, etc. It also provides data structures like sequences and tuples with many functions for operating on them, and has arbitrary-precision arithmetic support. Pretty neat stuff.
- RossBencina 7y agoInteresting. Would you happen to have a link to some human readable documentation and/or examples? I couldn't make much sense of the grammar in [1] without usage examples. [1] https://github.com/rofl0r/order-pp/blob/master/doc/notes.txt https://github.com/rofl0r/order-pp/blob/master/doc/notes.txt
- lifthrasiir 7y agoThere are some annotated examples [1]. [1] https://github.com/rofl0r/order-pp/tree/master/example https://github.com/rofl0r/order-pp/tree/master/example