[CMake] Compiling fortran
Juan Sanchez
Juan.Sanchez at amd.com
Wed Sep 26 11:51:57 EDT 2007
Hi Bill,
I wouldn't mind taking a stab at it.
It would be easy enough to tell lex to drop any line starting with a
comment character. Something along the lines of:
^[cC].* {}
There seems to be a line in the lexer that does this, but it doesn't
appear that that the start condition, fixed_fmt, is ever activated.
<fixed_fmt>^[cC*dD].*\n { return EOSTMT; } /* empty lines */
Do you have any info about how to make submissions and getting the
latest CVS?
Juan
Bill Hoffman wrote:
> Juan Sanchez wrote:
>> It turns out that any word of the word Use or use as a word anywhere in
>> a comment causes the dependency scanner to use the next token on the
>> line as a module dependency.
>>
>> So I changed all the code to use xUse and xuse.
>>
> The problem is well known, and much talked about.
> The solution is to fix the fortran parser:
> from makefdep90 that is used in CMake.
>
> http://www.cmake.org/pipermail/cmake/2006-September/011072.html
>
> A lex/yacc guru would be best to help out here. Basically we want
> the fortran parser to ignore all comment lines. I gave it a try a while
> ago, but did not get it to work. I suppose a hack solution would be to
> pre-process the files and remove the comments before the parser sees
> it. If someone does either of those, I would be happy to put it into CVS
> CMake.
>
> -Bill
>
More information about the CMake
mailing list