simplified switch in parser.c
Merge pull request #15 from ukasz/patch-7

simplified switch in parser.c