This implements a simple compile-time lexer in cpp with extra language features such as comments (single and multi-line) and a string literal. On top of that, it preserves the whitespaces and newline so that we can create the source code from it.
NOTE:
This is an experimental project to test the boundaries of C++'s compile-time programming and see how far I can go with this.
This implements a simple compile-time lexer in cpp with extra language features such as comments (single and multi-line) and a string literal. On top of that, it preserves the whitespaces and newline so that we can create the source code from it.
NOTE: This is an experimental project to test the boundaries of
C++
's compile-time programming and see how far I can go with this.