comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: idl syntax validation
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: idl syntax validation [message #50734 is a reply to message #50718] Wed, 11 October 2006 15:11 Go to previous messageGo to previous message
Dominic Metzger is currently offline  Dominic Metzger
Messages: 30
Registered: August 2006
Member
I guess I wasnt clear enough... I mean something that I can run in a
bash script to test if a .pro file has valid syntax.

something like:
echo '.compile foo.pro' | idl
and then checking if there are any syntax error messages and if there
are act accordingly.

But is there a better way than using .compile for this?

dometz


JD Smith wrote:
> On Wed, 11 Oct 2006 13:41:12 -0700, Dometz wrote:
>
>> Hi,
>>
>> Is there way to validate idl syntax? So, something like the .compile
>> command on the command line but which only checks if the syntax is
>> valid and then exits and reports the errors.
>
> catch,err
> if err ne 0 then begin
> print,'caught compile error for ',routine
> catch,/cancel
> endif else resolve_routine,routine,/EITHER
>
> JD
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Opening a .isv file
Next Topic: Basic format code question

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:54:10 PDT 2025

Total time taken to generate the page: 0.00410 seconds