lr(0) parser, parsing tree represented as production string