SQL Parser in C