{ } Raw JSON

bundles / numpy 2.4.4 / numpy / f2py / crackfortran / readfortrancode

function

numpy.f2py.crackfortran:readfortrancode

source: /numpy/f2py/crackfortran.py :356

Signature

def   readfortrancode ( ffile dowithline = <function pprint at 0x0000> istop = 1 )

Summary

Read fortran codes from files and

  • Get rid of comments, line continuations, and empty lines; lower cases.

  • Call dowithline(line) on every line.

  • Recursively call itself when statement "include '<filename>'" is met.

Aliases

  • numpy.f2py.crackfortran.readfortrancode