OpenADFortTk (SourceProcessing)
|
Public Member Functions | |
def | __init__ |
def | __repr__ |
def | __str__ |
Static Public Member Functions | |
def | parse |
Public Attributes | |
ty | |
name | |
args | |
result | |
qualifiers | |
Static Public Attributes | |
string | kw = 'function' |
kw_str = kw | |
utype_name = kw | |
Static Private Attributes | |
list | _sons = ['ty','name','args','result','qualifiers'] |
Definition at line 1689 of file fortStmts.py.
def PyFort.fortStmts.FunctionStmt.__init__ | ( | self, | |
ty, | |||
name, | |||
args, | |||
result, | |||
qualifiers = None , |
|||
lineNumber = 0 , |
|||
label = False , |
|||
lead = '' , |
|||
internal = [] , |
|||
rest = [] |
|||
) |
typ = None if ty: (type_name,mod) = ty[0] type_class = _name2class(type_name) typ = (type_class,mod)
Definition at line 1727 of file fortStmts.py.
def PyFort.fortStmts.FunctionStmt.__repr__ | ( | self | ) |
Reimplemented from PyFort.fortStmts.NonComment.
Definition at line 1743 of file fortStmts.py.
References PyFort.fortStmts.StmtFnStmt.args, PyFort.fortStmts.SubroutineStmt.args, PyFort.fortStmts.FunctionStmt.args, PyFort.fortStmts.DrvdTypeDefn.name, PyFort.fortStmts.InterfaceStmt.name, PyFort.fortStmts.BlockdataStmt.name, PyFort.fortStmts.CommonStmt.name, PyFort.fortStmts.EndInterfaceStmt.name, PyFort.fortStmts.StmtFnStmt.name, PyFort.fortStmts.SubroutineStmt.name, PyFort.fortStmts.ProgramStmt.name, PyFort.fortStmts.FunctionStmt.name, PyFort.fortStmts.SubroutineStmt.qualifiers, PyFort.fortStmts.FunctionStmt.qualifiers, PyFort.fortStmts.FunctionStmt.result, and PyFort.fortStmts.FunctionStmt.ty.
def PyFort.fortStmts.FunctionStmt.__str__ | ( | self | ) |
Reimplemented from PyFort.fortStmts.NonComment.
Definition at line 1755 of file fortStmts.py.
References PyFort.fortStmts.StmtFnStmt.args, PyFort.fortStmts.SubroutineStmt.args, PyFort.fortStmts.FunctionStmt.args, PyFort.fortStmts.TypeDecl.kw, PyFort.fortStmts.DrvdTypeDecl.kw, PyFort.fortStmts.ClassStmt.kw, PyFort.fortStmts.UPClassStmt.kw, PyFort.fortStmts.DrvdTypeDefn.kw, PyFort.fortStmts.InterfaceStmt.kw, PyFort.fortStmts.ProcedureStmt.kw, PyFort.fortStmts.PointerStmt.kw, PyFort.fortStmts.TargetStmt.kw, PyFort.fortStmts.SequenceStmt.kw, PyFort.fortStmts.BlockdataStmt.kw, PyFort.fortStmts.CommonStmt.kw, PyFort.fortStmts.DataStmt.kw, PyFort.fortStmts.EndInterfaceStmt.kw, PyFort.fortStmts.EndDrvdTypeDefn.kw, PyFort.fortStmts.PrivateStmt.kw, PyFort.fortStmts.PublicStmt.kw, PyFort.fortStmts.ContainsStmt.kw, PyFort.fortStmts.ImplicitNone.kw, PyFort.fortStmts.ImplicitStmt.kw, PyFort.fortStmts.EquivalenceStmt.kw, PyFort.fortStmts.ParameterStmt.kw, PyFort.fortStmts.SaveStmt.kw, PyFort.fortStmts.ExternalStmt.kw, PyFort.fortStmts.AllocatableStmt.kw, PyFort.fortStmts.CharacterStmt.kw, PyFort.fortStmts.IntrinsicStmt.kw, PyFort.fortStmts.IncludeLine.kw, PyFort.fortStmts.RealStmt.kw, PyFort.fortStmts.ComplexStmt.kw, PyFort.fortStmts.IntegerStmt.kw, PyFort.fortStmts.LogicalStmt.kw, PyFort.fortStmts.DoubleStmt.kw, PyFort.fortStmts.DoubleCplexStmt.kw, PyFort.fortStmts.DimensionStmt.kw, PyFort.fortStmts.IntentStmt.kw, PyFort.fortStmts.OptionalStmt.kw, PyFort.fortStmts.NamelistStmt.kw, PyFort.fortStmts.SubroutineStmt.kw, PyFort.fortStmts.ProgramStmt.kw, PyFort.fortStmts.FunctionStmt.kw, PyFort.fortStmts.DrvdTypeDefn.name, PyFort.fortStmts.InterfaceStmt.name, PyFort.fortStmts.BlockdataStmt.name, PyFort.fortStmts.CommonStmt.name, PyFort.fortStmts.EndInterfaceStmt.name, PyFort.fortStmts.StmtFnStmt.name, PyFort.fortStmts.SubroutineStmt.name, PyFort.fortStmts.ProgramStmt.name, PyFort.fortStmts.FunctionStmt.name, PyFort.fortStmts.SubroutineStmt.qualifiers, PyFort.fortStmts.FunctionStmt.qualifiers, PyFort.fortStmts.FunctionStmt.result, PyFort.fortStmts.FunctionStmt.ty, and PyFort::fortStmts.typestr2().
def PyFort.fortStmts.FunctionStmt.parse | ( | ws_scan, | |
lineNumber | |||
) | [static] |
Definition at line 1696 of file fortStmts.py.
References PyUtil::l_assembler.cslist(), PyUtil::assembler.disj(), PyUtil::l_assembler.lit(), PyUtil::assembler.seq(), PyUtil::assembler.star(), PyUtil::assembler.treat(), and PyUtil::assembler.zo1().
list PyFort::fortStmts.FunctionStmt::_sons = ['ty','name','args','result','qualifiers'] [static, private] |
Reimplemented from PyFort.fortStmts.GenStmt.
Definition at line 1693 of file fortStmts.py.
Referenced by PyFort.fortStmts.NonComment.__repr__(), PyFort.fortStmts.Exec.__repr__(), PyFort.fortStmts.NonComment.get_sons(), and PyIR.mutable_tree._Mutable_T.subtrees().
Definition at line 1734 of file fortStmts.py.
Referenced by PyFort.fortStmts.FunctionStmt.__repr__(), PyFort.fortStmts.EntryStmt.__repr__(), PyFort.fortStmts.CallStmt.__repr__(), PyFort.fortStmts.FunctionStmt.__str__(), PyFort.fortStmts.EntryStmt.__str__(), PyFort.fortStmts.CallStmt.__str__(), PyFort.fortStmts.CallStmt.get_args(), and PyFort.fortStmts.CallStmt.set_args().
string PyFort::fortStmts.FunctionStmt::kw = 'function' [static] |
Definition at line 1690 of file fortStmts.py.
Referenced by PyFort.fortStmts.FunctionStmt::__str__(), PyFort.fortStmts.StopStmt::__str__(), PyFort.fortStmts.ReturnStmt::__str__(), PyFort.fortStmts.WhereStmt::__str__(), PyFort.fortStmts.DeallocateStmt::__str__(), PyFort.fortStmts.NullifyStmt::__str__(), PyFort.fortStmts.BackspaceStmt::__str__(), and PyFort.fortStmts.BuiltinExec::__str__().
PyFort::fortStmts.FunctionStmt::kw_str = kw [static] |
Definition at line 1691 of file fortStmts.py.
Referenced by PyFort.fortStmts.VarAttrib.__str__(), PyFort.fortStmts.EntryStmt.__str__(), and PyFort.fortStmts.ComplexEndStmt.__str__().
Definition at line 1734 of file fortStmts.py.
Referenced by PyFort.fortStmts.FunctionStmt.__repr__(), PyFort.fortStmts.ModuleStmt.__repr__(), PyFort.fortStmts.EntryStmt.__repr__(), PyFort.fortStmts.FunctionStmt.__str__(), PyFort.fortStmts.ModuleStmt.__str__(), PyFort.fortStmts.EntryStmt.__str__(), and PyFort.fortStmts.ComplexEndStmt.__str__().
Definition at line 1734 of file fortStmts.py.
Referenced by PyFort.fortStmts.FunctionStmt.__repr__(), and PyFort.fortStmts.FunctionStmt.__str__().
Definition at line 1734 of file fortStmts.py.
Referenced by PyFort.fortStmts.FunctionStmt.__repr__(), PyFort.fortStmts.EntryStmt.__repr__(), PyFort.fortStmts.FunctionStmt.__str__(), and PyFort.fortStmts.EntryStmt.__str__().
Definition at line 1734 of file fortStmts.py.
Referenced by PyFort.fortStmts.FunctionStmt::__repr__(), and PyFort.fortStmts.FunctionStmt::__str__().
PyFort::fortStmts.FunctionStmt::utype_name = kw [static] |
Definition at line 1692 of file fortStmts.py.