Fun Extending the C Preprocessor

·Hacker News··

Home Fun-Extending-the-C-Preprocessor David Priver, October 13th, 2026 As I've mentioned in previous posts, I've been writing my own C2Y Compiler / Interpreter / REPL for fun. One of the first things one has to do when writing a C Compiler is to first write a C Preprocessor (also known as the CPP). Counter to what most people think of the C Preprocessor, it is not a text-to-text translator. Instead it is a source to C token translator, with most implementations offering a text output to see what

Read full article →

Related Articles

Every AI model has the same "controversial" take on humans
rakannimer · Hacker News · 5h ago
Jailbreaking the Switch 2
ledoge · Hacker News · 13h ago
The recently proposed o(n log n) integer multiplication algorithm [pdf]
craigcitro · Hacker News · 19h ago
Security Disclosure
passenger · Hacker News · 1d ago
The 1.5°C goal of the Paris Agreement is no longer viable
velo_aprx · Hacker News · 1d ago