Simple LR(1) parser with table generation and string tester.