Replaced LR1->LALR1 generating algorithm with LR0->LALR1(+lookahead) according to Dragon-book.

>10 times faster and ~7 times less space-consuming.
Results seem to be identical.