[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: customizing parsing error reports



Hi Pieter,

Pieter Verheyden wrote:
Is there an easy way to customize the default error reports given by the
generated parser, so I can make them syntactically look the same as my
semantic analysis errors?

Not currently, but the current format of an error string is very regular, so you could parse it and issue your own error message based on retrieved information.

Etienne


-- Etienne M. Gagnon, Ph.D. http://www.info.uqam.ca/~egagnon/ SableVM: http://www.sablevm.org/ SableCC: http://www.sablecc.org/