Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [photran] Photran 6 support for C preprocessor

I think Photran 6 only knows that CPP directives are not Fortran
statements. With code such as

#ifdef PARALLEL
   DO I = MYPROC, N, NPROC
#else
   DO I = 1, N
#endif
   ! clever stuff
   ENDDO

the Photran parser complains that there's no ENDDO for the first DO.

Mike Garrahan

On 02/12/2011 01:01 PM, Alexis Rohou wrote:
> I filed this bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=337039
> 
> With photran 6.0.5, the following code is not parsed properly (I get
> SytaxException: syntax error: unexpected logical ...)
> 
> MODULE TEST
> CHARACTER(LEN=*), PARAMETER    ::    COMPILE_DATE =    __DATE__
> LOGICAL    ::    INTERACTIVE    =    .FALSE.
> END MODULE TEST
> 
> Is this meant to work? I have checked that the extension I gave the file is
> expected by Photran to be free-form and C preprocessed.
> 
> Am I missing something?


Back to the top