Category Archives: C

Inheritance and the C preprocessor

Defining n-ary trees using the C preprocessor In this article I introduce a compile time C technique used to define inheritance. Instead of giving a lengthy motivation I’ll jump directly to the algorithm and discuss it later. I hope lovers … Continue reading

Posted in Algorithms, C | 3 Comments

Refactoring the ANSI C grammar

A nice blog article by Eli Bendersky about the distinction between ASTs and CSTs. After having clarified the concepts Eli tried to make the case for ASTs. He presents the C grammar or more precisely the part of the C … Continue reading

Posted in C, Grammars | Leave a comment