fparser.two.Fortran2008.block_stmt_r808

Module containing Fortran2008 Block_Stmt rule R808

Module Contents

Classes

Block_Stmt

Fortran 2008 Rule 808.

class fparser.two.Fortran2008.block_stmt_r808.Block_Stmt(string, parent_cls=None)[source]

Bases: fparser.two.utils.StmtBase, fparser.two.utils.WORDClsBase, fparser.two.utils.ScopingRegionMixin

Fortran 2008 Rule 808.

block-stmt is [ block-construct-name : ] BLOCK

subclass_names = [][source]
use_names = ['Block_Construct_Name'][source]
counter = 0[source]
static match(string)[source]

Attempts to match the supplied text with this rule.

Parameters:

string (str) – the text to match.

Returns:

a tuple of the matched node and instance of Counter or None if there is no match.

Return type:

Tuple[“BLOCK”, fparser.two.Fortran2008.Block_Stmt.Counter] | NoneType

get_scope_name()[source]
Returns:

the name of this scoping region.

Return type:

str

get_start_name()[source]
Returns:

the name associated with this Block construct or None.

Return type:

str | NoneType

tostr()[source]
Returns:

the string representation of this node.

Return type:

str