Brad King schrieb am Montag 16 März 2009 um 15:48:
> Maik Beckmann wrote:
> > I still didn't test whether  fixed format file can include a free format
> > file, or vise versa.  In this case having distinct lexers(and parsers?)
> > is the only reliable approach.
>
> I just tried these cases and gcc chokes on both cases:
>
> ! main-free.f90
> include 'fixed.f'
>
> ! main-fixed.f
>       include 'free.f'
>
> In either case gcc assumes the included file is the same format as the
> includer and errors out if the file is really of the other format.

Which means we can set the format start state once and safely parse included 
files recursively.  Two distinct parser aren't needed.

Thanks,
 -- Maik
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to