transpyle icon indicating copy to clipboard operation
transpyle copied to clipboard

Fortran interface cannot be transpiled.

Open mbdevpl opened this issue 6 years ago • 0 comments

interface
  real function limiter(a,b)
    real,intent(IN) :: a,b
  end function limiter
end interface

Current Fortran AST generalizer fails for files containing interfaces (e.g. above) with the message like below:

NotImplementedError: no transformer available for node "interface", a subnode of "declaration":
<interface col_begin="4" col_end="18" line_begin="274" line_end="278">
                  <interface-stmt__begin addendum="begin" rule="1203" />
                  <header />
                  <interface-stmt abstract_token="" col_begin="4" col_end="14" eos="&#10;" hasGenericSpec="false" keyword="interface" line_begin="274" line_end="274" rule="1203" />
                  <body col_begin="7" col_end="28" line_begin="275" line_end="277">
                  ...
                  </body>
                  <end-interface-stmt col_begin="4" col_end="18" eos="&#10;" hasGenericSpec="false" keyword1="end" keyword2="interface" line_begin="278" line_end="278" rule="1204" />
                </interface>

mbdevpl avatar Jan 26 '18 07:01 mbdevpl