7.1.1.2.1.1.1.5.1.4. pycropml.transpiler.antlr_py.fortran.fortranExtraction module

A simple Strategy class In the constructor (Parameters description, Input and Output name, category) In SetPublisherData method (author, institution) In Domain property (Composite name) In URL property (URL) In Description property (Description)

class pycropml.transpiler.antlr_py.fortran.fortranExtraction.FortranExtraction[source]

Bases: MetaExtraction

externFunction(algo)[source]
getDecl(tree, modulenames, varnames)[source]

Get declarations of variables provided from modules imports

Parameters:
  • tree (Node) – ASG of the code from the merging of all source files

  • modulenames (list) – List of the modules names imported in a specific subroutine or function

  • varnames (list) – list of variables not declared in a specific subroutine or function

Returns:

dictionary where the key is the name of the variable and its value is its declaration Node

Return type:

dict

getDeclaration(tree, name)[source]
getModule(tree, name)[source]
getProcess(tree)[source]
getStruct(tree, name)[source]
getSubroutine(tree, name)[source]
modelcomposition(code, models, tree)[source]
modelunit(file, tree)[source]
notRequiredFunc(tree)[source]