Closed GoogleCodeExporter closed 9 years ago
Issue fixed in 22a3f12bd9f9.
Original comment by pearu.peterson
on 30 Jan 2012 at 8:47
Also note that you are using old parser code.
I recommend using fparser.Fortran2003 rules which are much more robust than the
old rules.
For example:
>>> from fparser.api import get_reader
>>> from fparser.Fortran2003 import Program
>>> s = '''module foo
... interface assignment(=)
... module procedure baa
... end interface assignment(=)
... end module foo
... '''
>>> r = get_reader(s)
>>> p = Program(r)
>>> print p
MODULE foo
INTERFACE ASSIGNMENT(=)
MODULE PROCEDURE baa
END INTERFACE ASSIGNMENT(=)
END MODULE foo
>>> p
Program(Module(Module_Stmt('MODULE', Name('foo')),
Specification_Part(Interface_Block(Interface_Stmt(Generic_Spec('ASSIGNMENT',
'=')), Procedure_Stmt(Name('baa')), End_Interface_Stmt('INTERFACE',
Generic_Spec('ASSIGNMENT', '=')))), End_Module_Stmt('MODULE', Name('foo'))))
Original comment by pearu.peterson
on 30 Jan 2012 at 9:00
Original issue reported on code.google.com by
james.ke...@gmail.com
on 25 Jan 2012 at 4:28Attachments: