Patterns in C: interpreter