My task is to implement a parser by hand, therefore using a parser generator is out of question. But I just can\'t find an efficient way to implement syntactic analysis. I h