Is there any way to interact with informix syntax parser, to obtain the line number for a syntax error.

I interested in doing so for a sql tool i'm developing...

Thanks