ThePrimeagen / ts-rust-zig-deez

605 stars 160 forks source link

Compile-time cpp #236

Open amitsingh19975 opened 1 year ago

amitsingh19975 commented 1 year ago

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.