fixed bnf grammar (added semicolons) and C output of bnf tool