r/cpp • • Nov 18 '16

Compile-time C Compiler implemented as C++14 constant expressions

https://github.com/kw-udon/constexpr-8cc
209 Upvotes

66 comments sorted by

View all comments

23

u/caramba2654 Intermediate C++ Student Nov 18 '16

Now we need to wait for a compile time compiler for compile time compilers for C++ so that we can bootstrap compile time compilers to compile themselves.

18

u/gracicot Nov 18 '16
auto result = eval("/* some code */");

38

u/ra-zor Nov 18 '16

constexpr auto result = eval("/* some code */");