adding memo to SimpleParserContext