Jerry Stuckle wrote:
AFAIK, syntax errors are fatal in any language, and there's no way to
handle those errors.
Hmm, not really. See HTML: HTML parsers can recover gracefully from badly
terminated code.
It really depends on the compiler (or interpreter). However, developing a
grammar which can recover from errors is more difficult than one which
can't.
That said, if you're getting E_PARSE fatal errors, there is no way around
it. Fix your code, dammit!
--
----------------------------------
Iván Sánchez Ortega -ivan-algarroba-sanchezortega-punto-es-
Un ordenador no es un televisor ni un microondas, es una herramienta
compleja.