[metapost] Finding line containg error in Metapost file

Hans Hagen pragma at wxs.nl
Tue Jul 9 09:01:39 CEST 2013


On 7/9/2013 1:18 AM, Peter Zeman wrote:
> Hello.
>
> I would like to ask whether it is "algorithmically" possible to find
> the line with error in a metapost file just with the information given
> by "mpost". I mean, is the line with error uniquely determined by the
> output of "mpost"?
>
> I would like to write a program, which tells me the line containing
> error. I know, that metapost gives me a line, but I would like to know
> the exact line. For example if I have a macro with an error, I don't
> want the line where the macro was used, but the line in the macro,
> which contains the error. Is this possible?

The error line is where the error shows up but errors can also be in
macros that are defined anywhere so the best you can catch are typos or 
wrong calls

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the metapost mailing list