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 #50666] Sun, 15 October 2006 10:00 Go to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
Michael Galloy wrote:
> The below routines have to be in separate files, named
> validate_syntax.pro and validate_syntax_helper.pro. Then
>
> IDL> print, validate_syntax('foo')
> 0
> IDL> print, validate_syntax('validate_syntax')
> 1
>
> My "normal" trick of using EXECUTE(..., 1) didn't work, so I had to up
> the ante to the IDL_IDLBridge.
>
> Mike

Also, you'll want to rework this a bit since you don't want to start a
new IDL_IDLBridge for each routine check if you are checking a lot of
routines.

One last caveat, you can't check VALIDATE_SYNTAX_HELPER (well, you can,
but compiling a routine while executing that routine is an error,
VALIDATE_SYNTAX_HELPER will return 0 when checking itself).

Mike
--
www.michaelgalloy.com
[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 16:09:31 PDT 2025

Total time taken to generate the page: 0.00449 seconds