F2x.parser.plyplus.tree module

Created on 08.04.2016

@author: meinel

class F2x.parser.plyplus.tree.FuncDef(ast)

Bases: F2x.parser.plyplus.tree.SubDef

class F2x.parser.plyplus.tree.Module(ast)

Bases: F2x.parser.tree.Module

export_methods(src)
class F2x.parser.plyplus.tree.SubDef(ast)

Bases: F2x.parser.tree.SubDef

class F2x.parser.plyplus.tree.TypeDef(ast)

Bases: F2x.parser.tree.TypeDef

class F2x.parser.plyplus.tree.VarDecl(ast, prefix='')

Bases: F2x.parser.tree.VarDecl

A variable declaration.

The following properties are available:

  • name: The symbolic name of the variable.

  • type: The C type of this variable. This might be a basic type (REAL, INTEGER, LOGICAL) or TYPE(C) for any

    other type like arrays, derived types or strings.

  • pytype, cstype: The type to be used by Python or C# respectively.

  • intent: May be ‘IN’, ‘OUT’ or ‘INOUT’.

  • getter: This indicates whether the generated getter should be a ‘function’ or ‘subroutine’.

  • setter (opt): This indicates whether a ‘subroutine’ should be generated as setter.

  • ftype (opt): The name of the derived type.

  • strlen (opt): The length of the string.

  • kind (opt): The kind specifier if available.

  • dynamic (opt): Indicates whether the variable is ‘ALLOCATABLE’ or a ‘POINTER’.

  • dims (opt): For an array contains a list with the sizes per dimension.

with_intent(intent)