Earley Parser for simple arithmetic grammar