Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange behevior related to include statement. No Include class yet in nclock_statement.py #16

Open
GoogleCodeExporter opened this issue Aug 5, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

Hi pearu,
I looked into r40. It works OK.But two point if you can modify.

1. When I parsed a code, I can not find the include statement.
It seems that there is no class for the include statement.
I think the include statement should make depth one-rank deeper
(as an attribute of the "Include" Class, included file name. 
 Maybe relative path from the source is good from 
 the view of protability).
---Now we see strange results; span gives a line number in the included file. 

2.Then I found that the include statement in a fortran code is automatically
  classified to a comment. I think this is wrong procedure.
  It makes difficult to use fparser as a rewriter.
  If you introduce a class for include, then its instance 
  of included file is just empty, and no content.

So two problems above is systematically solved by adding a "Include" Class
in block_statement.py, I think

Original issue reported on code.google.com by [email protected] on 27 Mar 2010 at 11:36

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant