Regular expressions and grammars for C

yacc-based grammar for C
lex-based grammar for tokenizing C

C and C++ examples and experimentation

The programs below are meant to explore some of the aspects of C++ that are not typically covered in the first/second year programming courses.

For more introductory notes on C/C++, see my CSCI 160 notes, CSCI 161 notes

Experimental evaluation of C/C++ behaviour
The objective in examining the programs here is to run the program, study the code and the resulting output, and see what it tells us about how different aspects of the language have been implemented.