CS 3114 Bit Manipulation Grammar Parser in C