pyccel.codegen.wrapper.fortran_to_c_wrapper module#
Module describing the code-wrapping class : FortranToCWrapper which creates an interface exposing Fortran code to C.
- class pyccel.codegen.wrapper.fortran_to_c_wrapper.FortranToCWrapper(sharedlib_dirpath, verbose)[source]#
Bases:
Wrapper
Class for creating a wrapper exposing Fortran code to C.
A class which provides all necessary functions for wrapping different AST objects such that the resulting AST is C-compatible. This new AST is printed as an intermediary layer.
- Parameters:
sharedlib_dirpath (str) – The folder where the generated .so file will be located.
verbose (int) – The level of verbosity.
- start_language = 'Fortran'#
- target_language = 'C'#