fparser.two.Fortran2008.critical_stmt_r811

Module containing Fortran2008 Critical_Stmt rule R811

Module Contents

Classes

Critical_Stmt

Fortran 2008 Rule R811.

class fparser.two.Fortran2008.critical_stmt_r811.Critical_Stmt(string, parent_cls=None)[source]

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

Fortran 2008 Rule R811.

critical-stmt is [ critical-construct-name : ] CRITICAL

subclass_names = [][source]
use_names = ['Critical_Construct_Name'][source]
static match(string)[source]

Attempts to match the supplied string as a CRITICAL statement.

Parameters:

string (str) – the string to attempt to match.

Returns:

2-tuple containing the matched word “CRITICAL” and None or None if no match.

Return type:

Tuple[str, NoneType] or NoneType

get_start_name()[source]
Returns:

the name associated with the start of this CRITICAL region (if any)

Return type:

str | NoneType

tostr()[source]
Returns:

the string representation of this node.

Return type:

str