Closed arporter closed 6 years ago
I've fixed this on branch open_wo_named_unit
. The match method was returning File_Unit_Number
instead of File_Unit_Number(string)
. I've added tests for both OPEN and the associated Connection_Spec.
In doing this I've discovered that classes such as blah_List (e.g. Connection_Spec_List) or Scalar_blah are generated at runtime (at the end of the Fortran2003.py module). This is why we get so many pylint errors about undefined variables.
I've also realised that, because of the auto-generation of some classes, the match method does need to catch NoMatchError
. I've therefore put this back in the match method of the Inquire_Spec
class (I removed it in #35 because I thought it was unnecessary).
When parsing the following OPEN call:
fparser2 generates:
i.e. the fact that the unit number argument isn't named in the original call appears to cause problems.