Earley parser provides syntax errors